Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | public function testAdminEmailWithName() |
||
39 | { |
||
40 | Email::config()->set('admin_email', ['[email protected]' => 'The ad&min']); |
||
41 | |||
42 | $formatter = new DebugViewFriendlyErrorFormatter(); |
||
43 | $formatter->setTitle("There has been an error"); |
||
44 | $formatter->setBody("The website server has not been able to respond to your request"); |
||
45 | |||
46 | $expected = <<<TEXT |
||
47 | WEBSITE ERROR |
||
48 | There has been an error |
||
49 | ----------------------- |
||
50 | The website server has not been able to respond to your request |
||
51 | |||
52 | Contact The ad&min: testy [at] mctest [dot] face |
||
53 | |||
54 | |||
55 | TEXT |
||
56 | ; |
||
57 | |||
58 | $this->assertEquals($expected, $formatter->output(404)); |
||
59 | } |
||
61 |