Inheritance: extends BaseType
示例#1
0
 public function testPathType()
 {
     $url = new PathType();
     $this->assertTrue($url->test('tests'));
     $this->assertTrue($url->test('composer.json'));
     $this->assertFalse($url->test('foo/bar'));
 }
示例#2
0
 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'));
 }