parse() public method

public parse ( $value )
Beispiel #1
0
 /**
  * @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));
     }
 }