@@ -5,24 +5,24 @@ |
||
5 | 5 | */ |
6 | 6 | class FileWritableCheckTest extends SapphireTest |
7 | 7 | { |
8 | - public function testCheckReportsWritablePaths() |
|
9 | - { |
|
10 | - $check = new FileWriteableCheck(TEMP_FOLDER); |
|
8 | + public function testCheckReportsWritablePaths() |
|
9 | + { |
|
10 | + $check = new FileWriteableCheck(TEMP_FOLDER); |
|
11 | 11 | |
12 | - $expected = array( |
|
13 | - EnvironmentCheck::OK, |
|
14 | - '', |
|
15 | - ); |
|
12 | + $expected = array( |
|
13 | + EnvironmentCheck::OK, |
|
14 | + '', |
|
15 | + ); |
|
16 | 16 | |
17 | - $this->assertEquals($expected, $check->check()); |
|
18 | - } |
|
17 | + $this->assertEquals($expected, $check->check()); |
|
18 | + } |
|
19 | 19 | |
20 | - public function testCheckReportsNonWritablePaths() |
|
21 | - { |
|
22 | - $check = new FileWriteableCheck('/var'); |
|
20 | + public function testCheckReportsNonWritablePaths() |
|
21 | + { |
|
22 | + $check = new FileWriteableCheck('/var'); |
|
23 | 23 | |
24 | - $result = $check->check(); |
|
24 | + $result = $check->check(); |
|
25 | 25 | |
26 | - $this->assertEquals(EnvironmentCheck::ERROR, $result[0]); |
|
27 | - } |
|
26 | + $this->assertEquals(EnvironmentCheck::ERROR, $result[0]); |
|
27 | + } |
|
28 | 28 | } |
@@ -5,27 +5,27 @@ |
||
5 | 5 | */ |
6 | 6 | class HasClassCheckTest extends SapphireTest |
7 | 7 | { |
8 | - public function testCheckReportsMissingClasses() |
|
9 | - { |
|
10 | - $check = new HasClassCheck('foo'); |
|
8 | + public function testCheckReportsMissingClasses() |
|
9 | + { |
|
10 | + $check = new HasClassCheck('foo'); |
|
11 | 11 | |
12 | - $expected = array( |
|
13 | - EnvironmentCheck::ERROR, |
|
14 | - 'Class foo doesn\'t exist', |
|
15 | - ); |
|
12 | + $expected = array( |
|
13 | + EnvironmentCheck::ERROR, |
|
14 | + 'Class foo doesn\'t exist', |
|
15 | + ); |
|
16 | 16 | |
17 | - $this->assertEquals($expected, $check->check()); |
|
18 | - } |
|
17 | + $this->assertEquals($expected, $check->check()); |
|
18 | + } |
|
19 | 19 | |
20 | - public function testCheckReportsFoundClasses() |
|
21 | - { |
|
22 | - $check = new HasClassCheck('stdClass'); |
|
20 | + public function testCheckReportsFoundClasses() |
|
21 | + { |
|
22 | + $check = new HasClassCheck('stdClass'); |
|
23 | 23 | |
24 | - $expected = array( |
|
25 | - EnvironmentCheck::OK, |
|
26 | - 'Class stdClass exists', |
|
27 | - ); |
|
24 | + $expected = array( |
|
25 | + EnvironmentCheck::OK, |
|
26 | + 'Class stdClass exists', |
|
27 | + ); |
|
28 | 28 | |
29 | - $this->assertEquals($expected, $check->check()); |
|
30 | - } |
|
29 | + $this->assertEquals($expected, $check->check()); |
|
30 | + } |
|
31 | 31 | } |
@@ -5,27 +5,27 @@ |
||
5 | 5 | */ |
6 | 6 | class HasFunctionCheckTest extends SapphireTest |
7 | 7 | { |
8 | - public function testCheckReportsMissingFunctions() |
|
9 | - { |
|
10 | - $check = new HasFunctionCheck('foo'); |
|
8 | + public function testCheckReportsMissingFunctions() |
|
9 | + { |
|
10 | + $check = new HasFunctionCheck('foo'); |
|
11 | 11 | |
12 | - $expected = array( |
|
13 | - EnvironmentCheck::ERROR, |
|
14 | - 'foo() doesn\'t exist', |
|
15 | - ); |
|
12 | + $expected = array( |
|
13 | + EnvironmentCheck::ERROR, |
|
14 | + 'foo() doesn\'t exist', |
|
15 | + ); |
|
16 | 16 | |
17 | - $this->assertEquals($expected, $check->check()); |
|
18 | - } |
|
17 | + $this->assertEquals($expected, $check->check()); |
|
18 | + } |
|
19 | 19 | |
20 | - public function testCheckReportsFoundFunctions() |
|
21 | - { |
|
22 | - $check = new HasFunctionCheck('class_exists'); |
|
20 | + public function testCheckReportsFoundFunctions() |
|
21 | + { |
|
22 | + $check = new HasFunctionCheck('class_exists'); |
|
23 | 23 | |
24 | - $expected = array( |
|
25 | - EnvironmentCheck::OK, |
|
26 | - 'class_exists() exists', |
|
27 | - ); |
|
24 | + $expected = array( |
|
25 | + EnvironmentCheck::OK, |
|
26 | + 'class_exists() exists', |
|
27 | + ); |
|
28 | 28 | |
29 | - $this->assertEquals($expected, $check->check()); |
|
30 | - } |
|
29 | + $this->assertEquals($expected, $check->check()); |
|
30 | + } |
|
31 | 31 | } |
@@ -5,15 +5,15 @@ |
||
5 | 5 | */ |
6 | 6 | class URLCheckTest extends SapphireTest |
7 | 7 | { |
8 | - public function testCheckReportsMissingPages() |
|
9 | - { |
|
10 | - $check = new URLCheck('foo', 'bar'); |
|
8 | + public function testCheckReportsMissingPages() |
|
9 | + { |
|
10 | + $check = new URLCheck('foo', 'bar'); |
|
11 | 11 | |
12 | - $expected = array( |
|
13 | - EnvironmentCheck::ERROR, |
|
14 | - 'Error retrieving "foo" (Code: 404)', |
|
15 | - ); |
|
12 | + $expected = array( |
|
13 | + EnvironmentCheck::ERROR, |
|
14 | + 'Error retrieving "foo" (Code: 404)', |
|
15 | + ); |
|
16 | 16 | |
17 | - $this->assertEquals($expected, $check->check()); |
|
18 | - } |
|
17 | + $this->assertEquals($expected, $check->check()); |
|
18 | + } |
|
19 | 19 | } |