Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function testEvent(): void |
||
21 | { |
||
22 | $dompdf = $this->createMock(Dompdf::class); |
||
23 | /** @noinspection HtmlRequiredAltAttribute */ |
||
24 | /** @noinspection HtmlUnknownTarget */ |
||
25 | $html = "<h1>Foo</h1>Bar <b>baz</b><img src='img/foo'>"; |
||
26 | |||
27 | $event = new OutputEvent($dompdf, $html); |
||
28 | |||
29 | static::assertSame($dompdf, $event->getPdf()); |
||
30 | static::assertSame($html, $event->getHtml()); |
||
31 | } |
||
32 | } |
||
33 |