parse() public method

public parse ( $value )
コード例 #1
0
ファイル: ValueTypeTest.php プロジェクト: c9s/getoptionkit
 public function testPathType()
 {
     $type = new PathType();
     $this->assertTrue($type->test('tests'));
     $this->assertTrue($type->test('composer.json'));
     $this->assertFalse($type->test('foo/bar'));
     $this->assertInstanceOf('SplFileInfo', $type->parse('composer.json'));
 }