| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function testSimple(): void |
||
| 13 | { |
||
| 14 | $renderer = new HtmlRenderer(); |
||
| 15 | $request = new ServerRequest('GET', '/', ['Accept' => ['text/html']]); |
||
| 16 | $renderer->setRequest($request); |
||
| 17 | $exceptionMessage = 'exception-test-message'; |
||
| 18 | $exception = new \RuntimeException($exceptionMessage); |
||
| 19 | $renderedOutput = $renderer->render($exception); |
||
| 20 | $this->assertContains('<html', $renderedOutput); |
||
| 21 | $this->assertContains(RuntimeException::class, $renderedOutput); |
||
| 22 | $this->assertContains($exceptionMessage, $renderedOutput); |
||
| 23 | } |
||
| 25 |