parse() public method

public parse ( $value )
コード例 #1
0
ファイル: ValueTypeTest.php プロジェクト: c9s/getoptionkit
 /**
  * @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));
     }
 }