/** * @dataProvider booleanTestProvider */ public function testBooleanType($a, $test, $expected) { $bool = new BooleanType(); $this->assertEquals($test, $bool->test($a)); if ($bool->test($a)) { $this->assertEquals($expected, $bool->parse($a)); } }