Improving annotation loader message

This commit is contained in:
Ryan Weaver 2017-10-19 19:10:28 -04:00
parent 744021b930
commit ce4cf471b9
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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()