Puli\Repository\Resource\FileResource::getChild PHP Method

getChild() public method

public getChild ( $relPath )
    public function getChild($relPath)
    {
        throw ResourceNotFoundException::forPath($this->getPath() . '/' . $relPath);
    }

Usage Example

 /**
  * @expectedException \Puli\Repository\Api\ResourceNotFoundException
  */
 public function testGetChildDetached()
 {
     $resource = new FileResource($this->fixturesDir . '/dir1/file1');
     $resource->getChild('file');
 }