@@ -15,17 +15,17 @@ |
||
15 | 15 | */ |
16 | 16 | class ExternalURLCheckTest extends SapphireTest |
17 | 17 | { |
18 | - public function testCheckReportsMissingPages() |
|
19 | - { |
|
20 | - $this->markTestSkipped('ExternalURLCheck seems faulty on some systems'); |
|
18 | + public function testCheckReportsMissingPages() |
|
19 | + { |
|
20 | + $this->markTestSkipped('ExternalURLCheck seems faulty on some systems'); |
|
21 | 21 | |
22 | - $check = new ExternalURLCheck('http://missing-site/'); |
|
22 | + $check = new ExternalURLCheck('http://missing-site/'); |
|
23 | 23 | |
24 | - $expected = [ |
|
25 | - EnvironmentCheck::ERROR, |
|
26 | - 'Success retrieving "http://missing-site/" (Code: 404)' |
|
27 | - ]; |
|
24 | + $expected = [ |
|
25 | + EnvironmentCheck::ERROR, |
|
26 | + 'Success retrieving "http://missing-site/" (Code: 404)' |
|
27 | + ]; |
|
28 | 28 | |
29 | - $this->assertEquals($expected, $check->check()); |
|
30 | - } |
|
29 | + $this->assertEquals($expected, $check->check()); |
|
30 | + } |
|
31 | 31 | } |
@@ -15,27 +15,27 @@ |
||
15 | 15 | */ |
16 | 16 | class HasClassCheckTest extends SapphireTest |
17 | 17 | { |
18 | - public function testCheckReportsMissingClasses() |
|
19 | - { |
|
20 | - $check = new HasClassCheck('foo'); |
|
18 | + public function testCheckReportsMissingClasses() |
|
19 | + { |
|
20 | + $check = new HasClassCheck('foo'); |
|
21 | 21 | |
22 | - $expected = [ |
|
23 | - EnvironmentCheck::ERROR, |
|
24 | - 'Class foo doesn\'t exist' |
|
25 | - ]; |
|
22 | + $expected = [ |
|
23 | + EnvironmentCheck::ERROR, |
|
24 | + 'Class foo doesn\'t exist' |
|
25 | + ]; |
|
26 | 26 | |
27 | - $this->assertEquals($expected, $check->check()); |
|
28 | - } |
|
27 | + $this->assertEquals($expected, $check->check()); |
|
28 | + } |
|
29 | 29 | |
30 | - public function testCheckReportsFoundClasses() |
|
31 | - { |
|
32 | - $check = new HasClassCheck('stdClass'); |
|
30 | + public function testCheckReportsFoundClasses() |
|
31 | + { |
|
32 | + $check = new HasClassCheck('stdClass'); |
|
33 | 33 | |
34 | - $expected = [ |
|
35 | - EnvironmentCheck::OK, |
|
36 | - 'Class stdClass exists', |
|
37 | - ]; |
|
34 | + $expected = [ |
|
35 | + EnvironmentCheck::OK, |
|
36 | + 'Class stdClass exists', |
|
37 | + ]; |
|
38 | 38 | |
39 | - $this->assertEquals($expected, $check->check()); |
|
40 | - } |
|
39 | + $this->assertEquals($expected, $check->check()); |
|
40 | + } |
|
41 | 41 | } |
@@ -16,25 +16,25 @@ |
||
16 | 16 | */ |
17 | 17 | class DatabaseCheckTest extends SapphireTest |
18 | 18 | { |
19 | - /** |
|
20 | - * {@inheritDoc} |
|
21 | - * @var bool |
|
22 | - */ |
|
23 | - protected $usesDatabase = true; |
|
19 | + /** |
|
20 | + * {@inheritDoc} |
|
21 | + * @var bool |
|
22 | + */ |
|
23 | + protected $usesDatabase = true; |
|
24 | 24 | |
25 | - public function testCheckReportsValidConnection() |
|
26 | - { |
|
27 | - $member = new Member; |
|
28 | - $member->FirstName = 'Bob'; |
|
29 | - $member->write(); |
|
25 | + public function testCheckReportsValidConnection() |
|
26 | + { |
|
27 | + $member = new Member; |
|
28 | + $member->FirstName = 'Bob'; |
|
29 | + $member->write(); |
|
30 | 30 | |
31 | - $check = new DatabaseCheck(); |
|
31 | + $check = new DatabaseCheck(); |
|
32 | 32 | |
33 | - $expected = [ |
|
34 | - EnvironmentCheck::OK, |
|
35 | - '' |
|
36 | - ]; |
|
33 | + $expected = [ |
|
34 | + EnvironmentCheck::OK, |
|
35 | + '' |
|
36 | + ]; |
|
37 | 37 | |
38 | - $this->assertEquals($expected, $check->check()); |
|
39 | - } |
|
38 | + $this->assertEquals($expected, $check->check()); |
|
39 | + } |
|
40 | 40 | } |
@@ -15,27 +15,27 @@ |
||
15 | 15 | */ |
16 | 16 | class HasFunctionCheckTest extends SapphireTest |
17 | 17 | { |
18 | - public function testCheckReportsMissingFunctions() |
|
19 | - { |
|
20 | - $check = new HasFunctionCheck('foo'); |
|
18 | + public function testCheckReportsMissingFunctions() |
|
19 | + { |
|
20 | + $check = new HasFunctionCheck('foo'); |
|
21 | 21 | |
22 | - $expected = [ |
|
23 | - EnvironmentCheck::ERROR, |
|
24 | - 'foo() doesn\'t exist' |
|
25 | - ]; |
|
22 | + $expected = [ |
|
23 | + EnvironmentCheck::ERROR, |
|
24 | + 'foo() doesn\'t exist' |
|
25 | + ]; |
|
26 | 26 | |
27 | - $this->assertEquals($expected, $check->check()); |
|
28 | - } |
|
27 | + $this->assertEquals($expected, $check->check()); |
|
28 | + } |
|
29 | 29 | |
30 | - public function testCheckReportsFoundFunctions() |
|
31 | - { |
|
32 | - $check = new HasFunctionCheck('class_exists'); |
|
30 | + public function testCheckReportsFoundFunctions() |
|
31 | + { |
|
32 | + $check = new HasFunctionCheck('class_exists'); |
|
33 | 33 | |
34 | - $expected = [ |
|
35 | - EnvironmentCheck::OK, |
|
36 | - 'class_exists() exists' |
|
37 | - ]; |
|
34 | + $expected = [ |
|
35 | + EnvironmentCheck::OK, |
|
36 | + 'class_exists() exists' |
|
37 | + ]; |
|
38 | 38 | |
39 | - $this->assertEquals($expected, $check->check()); |
|
40 | - } |
|
39 | + $this->assertEquals($expected, $check->check()); |
|
40 | + } |
|
41 | 41 | } |