/** * @expectedException \Puli\Manager\Api\Repository\NoSuchPathMappingException * @expectedExceptionMessage foobar */ public function testGetPathMappingFailsIfPathNotFound() { $packageFile = new PackageFile(); $packageFile->getPathMapping('/foobar'); }