Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
38 | public function testResponse() |
||
39 | { |
||
40 | $payload = (new TemplatePayload) |
||
41 | ->withOutput([ |
||
42 | 'header' => 'header', |
||
43 | 'body' => 'body', |
||
44 | 'footer' => 'footer', |
||
45 | ])->withTemplate('index.html.twig'); |
||
46 | |||
47 | $body = (string) $this->formatter->body($payload); |
||
48 | $this->assertEquals("<h1>header</h1>\n<p>body</p>\n<span>footer</span>\n", $body); |
||
49 | } |
||
50 | } |
||
51 |