These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /** |
||
4 | * @mixin PHPUnit_Framework_TestCase |
||
5 | */ |
||
6 | View Code Duplication | class ExternalURLCheckTest extends SapphireTest { |
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
7 | public function testCheckReportsMissingPages() { |
||
8 | $this->markTestSkipped('ExternalURLCheck seems faulty on some systems'); |
||
9 | |||
10 | $check = new ExternalURLCheck('http://missing-site/'); |
||
11 | |||
12 | $expected = array( |
||
13 | EnvironmentCheck::ERROR, |
||
14 | 'Success retrieving "http://missing-site/" (Code: 404)', |
||
15 | ); |
||
16 | |||
17 | $this->assertEquals($expected, $check->check()); |
||
18 | } |
||
19 | } |
||
20 |