1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

CS tweaks and cleanups, allow "" to set fallback dirs, refs #2459

This commit is contained in:
Jordi Boggiano 2014-01-03 16:31:05 +01:00
parent b23742e30c
commit 3c5000ad7f
6 changed files with 59 additions and 76 deletions

View file

@ -252,11 +252,14 @@ class AutoloadGeneratorTest extends TestCase
$this->assertTrue(file_exists($this->vendorDir.'/composer/autoload_classmap.php'), "ClassMap file needs to be generated, even if empty.");
}
public function testPSR0ToClassMapIgnoresNonExistingDir()
public function testPSRToClassMapIgnoresNonExistingDir()
{
$package = new Package('a', '1.0', '1.0');
$package->setAutoload(array('psr-0' => array('foo/bar/non/existing/')));
$package->setAutoload(array(
'psr-0' => array('Prefix' => 'foo/bar/non/existing/'),
'psr-4' => array('Prefix\\' => 'foo/bar/non/existing2/')
));
$this->repository->expects($this->once())
->method('getCanonicalPackages')