Code Duplication    Length = 12-14 lines in 2 locations

tests/checks/ExternalURLCheckTest.php 1 location

@@ 6-19 (lines=14) @@
3
/**
4
 * @mixin PHPUnit_Framework_TestCase
5
 */
6
class ExternalURLCheckTest extends SapphireTest {
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

tests/checks/URLCheckTest.php 1 location

@@ 6-17 (lines=12) @@
3
/**
4
 * @mixin PHPUnit_Framework_TestCase
5
 */
6
class URLCheckTest extends SapphireTest {
7
	public function testCheckReportsMissingPages() {
8
		$check = new URLCheck('foo', 'bar');
9
10
		$expected = array(
11
			EnvironmentCheck::ERROR,
12
			'Error retrieving "foo" (Code: 404)',
13
		);
14
15
		$this->assertEquals($expected, $check->check());
16
	}
17
}
18