1
0
Fork 0

improve exception message

pull/2828/head
Jan Brecka 2014-03-20 14:24:42 +01:00
parent 13b57112a9
commit ea7717c8e5
2 changed files with 1 additions and 2 deletions

View File

@ -80,7 +80,7 @@ class ClassMapGenerator
foreach ($classes as $class) {
if (array_key_exists($class, $map)) {
throw new \RuntimeException('Ambiguous reference to class "'.$class.'" was found.');
throw new \RuntimeException('Ambiguous class "'.$class.'" resolution; defined in "'.$map[$class].'" and in "'.$filePath.'" file.');
}
$map[$class] = $filePath;

View File

@ -106,7 +106,6 @@ class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase
/**
* @expectedException \RuntimeException
* @expectedExceptionMessage Ambiguous reference to class "A" was found.
*/
public function testAmbiguousReference()
{