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