/**
  * Returns the repository for the given path information
  *
  * @param   array       $pathInfo       An array containing information about the path
  * @return  RepositoryInterface
  */
 protected function getRepository(array $pathInfo)
 {
     if ($pathInfo['host'] === PathInformationInterface::GLOBAL_PATH_HOST) {
         return $this->createRepositoryForPath($pathInfo['path']);
     } else {
         return $this->map->getRepository($pathInfo['host']);
     }
 }
 public function testTryGetNonExistentRepositoryReturnsNull()
 {
     $registry = new RepositoryRegistry();
     $this->assertNull($registry->tryGetRepository('a'));
 }