X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fconfig%2FTests%2FException%2FFileLoaderLoadExceptionTest.php;fp=vendor%2Fsymfony%2Fconfig%2FTests%2FException%2FFileLoaderLoadExceptionTest.php;h=8363084c19a221f9d413362514a1380b53de4ae1;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=c1ad9150e6a9968aaa44122b1e8a90e3c33f5517;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/symfony/config/Tests/Exception/FileLoaderLoadExceptionTest.php b/vendor/symfony/config/Tests/Exception/FileLoaderLoadExceptionTest.php index c1ad9150e..8363084c1 100644 --- a/vendor/symfony/config/Tests/Exception/FileLoaderLoadExceptionTest.php +++ b/vendor/symfony/config/Tests/Exception/FileLoaderLoadExceptionTest.php @@ -22,6 +22,18 @@ class FileLoaderLoadExceptionTest extends TestCase $this->assertEquals('Cannot load resource "resource".', $exception->getMessage()); } + public function testMessageCannotLoadResourceWithType() + { + $exception = new FileLoaderLoadException('resource', null, null, null, 'foobar'); + $this->assertEquals('Cannot load resource "resource". Make sure there is a loader supporting the "foobar" type.', $exception->getMessage()); + } + + public function testMessageCannotLoadResourceWithAnnotationType() + { + $exception = new FileLoaderLoadException('resource', null, null, null, 'annotation'); + $this->assertEquals('Cannot load resource "resource". Make sure annotations are installed and enabled.', $exception->getMessage()); + } + public function testMessageCannotImportResourceFromSource() { $exception = new FileLoaderLoadException('resource', 'sourceResource');