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