Completed
Push — master ( e090e4...18d79e )
by Damian
02:26
created

tests/checks/URLCheckTest.php (1 issue)

Upgrade to new PHP Analysis Engine

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 URLCheckTest extends SapphireTest {
0 ignored issues
show
As per PSR2, the opening brace for this class should be on a new line.
Loading history...
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