improve exception message
parent
13b57112a9
commit
ea7717c8e5
|
@ -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;
|
||||
|
|
|
@ -106,7 +106,6 @@ class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
/**
|
||||
* @expectedException \RuntimeException
|
||||
* @expectedExceptionMessage Ambiguous reference to class "A" was found.
|
||||
*/
|
||||
public function testAmbiguousReference()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue