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