Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function test_exception_message(): void |
||
14 | { |
||
15 | $facade = new FakeFacade(); |
||
16 | |||
17 | $exception = new DocBlockServiceNotFoundException($facade, 'ResolvableType'); |
||
18 | |||
19 | $expected = <<<EOT |
||
20 | ClassResolver Exception |
||
21 | Cannot resolve the `ResolvableType` for your module `FakeModule` |
||
22 | You can fix this by adding the missing `ResolvableType` to your module. |
||
23 | E.g. `\GacelaTest\Unit\FakeModule\ResolvableType` |
||
24 | |||
25 | EOT; |
||
26 | |||
27 | self::assertSame($expected, $exception->getMessage()); |
||
28 | } |
||
30 |