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