Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function testCreationWithError() : void |
||
33 | { |
||
34 | $exception = new Exception(); |
||
35 | $tag = InvalidTag::create('Body', 'name')->withError($exception); |
||
36 | |||
37 | self::assertSame('name', $tag->getName()); |
||
38 | self::assertSame('@name Body', $tag->render()); |
||
39 | self::assertSame($exception, $tag->getException()); |
||
40 | } |
||
41 | } |
||
42 |