| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function testLoaderException() |
||
| 12 | { |
||
| 13 | $exception = LoaderException::notFound('test', '/templates'); |
||
| 14 | |||
| 15 | $this->assertInstanceOf(LoaderException::class, $exception); |
||
| 16 | $this->assertInstanceOf(TwigErrorLoader::class, $exception); |
||
| 17 | $this->assertSame( |
||
| 18 | 'Unable to find template `test` (looked into: /templates).', |
||
| 19 | $exception->getMessage() |
||
| 20 | ); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |