/** * This method tests the "toInteger" method. * * @dataProvider data_toInteger */ public function test_toInteger(array $provided, array $expected) { $p0 = IInt32\Module::toInteger(IInt32\Type::box($provided[0])); $e0 = $expected[0]; $this->assertInstanceOf('\\Saber\\Data\\IInteger\\Type', $p0); $this->assertSame($e0, $p0->unbox()); }