public function testGenerateNameWithRelativePathDoesNotQueryPuliRepoIfCurrentDirNull()
 {
     $this->repo = $this->getMock('Puli\\Repository\\Api\\ResourceRepository');
     $this->repo->expects($this->never())->method('get');
     $this->factory = new PuliAssetFactory($this->repo, self::$fixturesDir);
     $name = $this->factory->generateAssetName(array('style.css'));
     // Don't use "/webmozart/puli" here, because that also corresponds to
     // the root directory of the factory
     $name->setCurrentDir(null);
     $this->assertNotEmpty($name->__toString());
 }