1 | <?php |
||
10 | class LoaderExceptionTest extends TestCase |
||
11 | { |
||
12 | public function testLoaderException() |
||
13 | { |
||
14 | $template = 'nowhere'; |
||
15 | $where = __DIR__; |
||
16 | |||
17 | $exception = LoaderException::notFound($template, $where); |
||
18 | |||
19 | $this->assertInstanceOf(LoaderException::class, $exception); |
||
20 | $this->assertInstanceOf(TwigErrorLoader::class, $exception); |
||
21 | $this->assertInstanceOf(ExceptionInterface::class, $exception); |
||
22 | $this->assertSame( |
||
23 | 'Unable to find template `'. $template .'` (looked into: '. $where . ').', |
||
24 | $exception->getMessage() |
||
25 | ); |
||
26 | } |
||
27 | } |
||
28 |