mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
show warning only instead of throwing exception
This commit is contained in:
parent
de09c5e371
commit
b94838169d
4 changed files with 29 additions and 7 deletions
|
@ -102,10 +102,6 @@ class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
$find->invoke(null, __DIR__.'/no-file');
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \RuntimeException
|
||||
*/
|
||||
public function testAmbiguousReference()
|
||||
{
|
||||
$this->checkIfFinderIsAvailable();
|
||||
|
@ -114,6 +110,9 @@ class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase
|
|||
$finder->files()->in(__DIR__ . '/Fixtures/Ambiguous');
|
||||
|
||||
ClassMapGenerator::createMap($finder);
|
||||
|
||||
$this->assertEquals(1, count(ClassMapGenerator::$ambiguousReferences));
|
||||
$this->assertEquals('A', ClassMapGenerator::$ambiguousReferences[0]['class']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue