1
0
Fork 0
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:
Jan Brecka 2014-03-24 14:34:02 +01:00
parent de09c5e371
commit b94838169d
4 changed files with 29 additions and 7 deletions

View file

@ -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']);
}
/**