public function testPathType() { $url = new PathType(); $this->assertTrue($url->test('tests')); $this->assertTrue($url->test('composer.json')); $this->assertFalse($url->test('foo/bar')); }
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')); }