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:
parent
b23742e30c
commit
3c5000ad7f
6 changed files with 59 additions and 76 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue