Improving annotation loader message
This commit is contained in:
parent
744021b930
commit
ce4cf471b9
@ -64,7 +64,7 @@ class FileLoaderLoadException extends \Exception
|
||||
} elseif (null !== $type) {
|
||||
// maybe there is no loader for this specific type
|
||||
if ('annotation' === $type) {
|
||||
$message .= ' Make sure annotations are enabled.';
|
||||
$message .= ' Make sure annotations are installed and enabled.';
|
||||
} else {
|
||||
$message .= sprintf(' Make sure there is a loader supporting the "%s" type.', $type);
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ class FileLoaderLoadExceptionTest extends TestCase
|
||||
public function testMessageCannotLoadResourceWithAnnotationType()
|
||||
{
|
||||
$exception = new FileLoaderLoadException('resource', null, null, null, 'annotation');
|
||||
$this->assertEquals('Cannot load resource "resource". Make sure annotations are enabled.', $exception->getMessage());
|
||||
$this->assertEquals('Cannot load resource "resource". Make sure annotations are installed and enabled.', $exception->getMessage());
|
||||
}
|
||||
|
||||
public function testMessageCannotImportResourceFromSource()
|
||||
|
Reference in New Issue
Block a user