Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function testOutput() |
||
18 | { |
||
19 | $formatter = new DebugViewFriendlyErrorFormatter(); |
||
20 | $formatter->setTitle("There has been an error"); |
||
21 | $formatter->setBody("The website server has not been able to respond to your request"); |
||
22 | |||
23 | $expected = <<<TEXT |
||
24 | WEBSITE ERROR |
||
25 | There has been an error |
||
26 | ----------------------- |
||
27 | The website server has not been able to respond to your request |
||
28 | |||
29 | Contact an administrator: testy [at] mctest [dot] face |
||
30 | |||
31 | |||
32 | TEXT |
||
33 | ; |
||
34 | |||
35 | $this->assertEquals($expected, $formatter->output(404)); |
||
36 | } |
||
61 |