mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Ignore aliases in autoload generator
This commit is contained in:
parent
35120d7d04
commit
1a255420b0
2 changed files with 6 additions and 0 deletions
|
@ -14,6 +14,7 @@ namespace Composer\Test\Autoload;
|
|||
|
||||
use Composer\Autoload\AutoloadGenerator;
|
||||
use Composer\Util\Filesystem;
|
||||
use Composer\Package\AliasPackage;
|
||||
use Composer\Package\MemoryPackage;
|
||||
use Composer\Test\TestCase;
|
||||
|
||||
|
@ -164,6 +165,7 @@ class AutoloadGeneratorTest extends TestCase
|
|||
$packages = array();
|
||||
$packages[] = $a = new MemoryPackage('a/a', '1.0', '1.0');
|
||||
$packages[] = $b = new MemoryPackage('b/b', '1.0', '1.0');
|
||||
$packages[] = $c = new AliasPackage($b, '1.2', '1.2');
|
||||
$a->setAutoload(array('psr-0' => array('A' => 'src/', 'A\\B' => 'lib/')));
|
||||
$b->setAutoload(array('psr-0' => array('B\\Sub\\Name' => 'src/')));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue