Inheritance: extends BaseType
Example #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'));
 }
Example #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'));
 }