@@ -3,10 +3,10 @@ |
||
3 | 3 | |
4 | 4 | class AssertionExampleTest extends TestCase |
5 | 5 | { |
6 | - public function testOne() |
|
7 | - { |
|
8 | - $e = new AssertionExample; |
|
6 | + public function testOne() |
|
7 | + { |
|
8 | + $e = new AssertionExample; |
|
9 | 9 | |
10 | - $e->doSomething(); |
|
11 | - } |
|
10 | + $e->doSomething(); |
|
11 | + } |
|
12 | 12 | } |
@@ -3,12 +3,12 @@ |
||
3 | 3 | |
4 | 4 | class NamespaceCoverageClassTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @covers Foo\CoveredClass |
|
8 | - */ |
|
9 | - public function testSomething() |
|
10 | - { |
|
11 | - $o = new Foo\CoveredClass; |
|
12 | - $o->publicMethod(); |
|
13 | - } |
|
6 | + /** |
|
7 | + * @covers Foo\CoveredClass |
|
8 | + */ |
|
9 | + public function testSomething() |
|
10 | + { |
|
11 | + $o = new Foo\CoveredClass; |
|
12 | + $o->publicMethod(); |
|
13 | + } |
|
14 | 14 | } |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | class Failure extends TestCase |
5 | 5 | { |
6 | - protected function runTest() |
|
7 | - { |
|
8 | - $this->fail(); |
|
9 | - } |
|
6 | + protected function runTest() |
|
7 | + { |
|
8 | + $this->fail(); |
|
9 | + } |
|
10 | 10 | } |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | class ConcreteTest extends AbstractTest |
3 | 3 | { |
4 | - public function testTwo() |
|
5 | - { |
|
6 | - $this->assertTrue(true); |
|
7 | - } |
|
4 | + public function testTwo() |
|
5 | + { |
|
6 | + $this->assertTrue(true); |
|
7 | + } |
|
8 | 8 | } |
@@ -3,24 +3,24 @@ |
||
3 | 3 | |
4 | 4 | class DependencySuccessTest extends TestCase |
5 | 5 | { |
6 | - public function testOne() |
|
7 | - { |
|
8 | - $this->assertTrue(true); |
|
9 | - } |
|
6 | + public function testOne() |
|
7 | + { |
|
8 | + $this->assertTrue(true); |
|
9 | + } |
|
10 | 10 | |
11 | - /** |
|
12 | - * @depends testOne |
|
13 | - */ |
|
14 | - public function testTwo() |
|
15 | - { |
|
16 | - $this->assertTrue(true); |
|
17 | - } |
|
11 | + /** |
|
12 | + * @depends testOne |
|
13 | + */ |
|
14 | + public function testTwo() |
|
15 | + { |
|
16 | + $this->assertTrue(true); |
|
17 | + } |
|
18 | 18 | |
19 | - /** |
|
20 | - * @depends DependencySuccessTest::testTwo |
|
21 | - */ |
|
22 | - public function testThree() |
|
23 | - { |
|
24 | - $this->assertTrue(true); |
|
25 | - } |
|
19 | + /** |
|
20 | + * @depends DependencySuccessTest::testTwo |
|
21 | + */ |
|
22 | + public function testThree() |
|
23 | + { |
|
24 | + $this->assertTrue(true); |
|
25 | + } |
|
26 | 26 | } |
@@ -7,30 +7,30 @@ |
||
7 | 7 | */ |
8 | 8 | class SampleArrayAccess implements ArrayAccess |
9 | 9 | { |
10 | - private $container; |
|
10 | + private $container; |
|
11 | 11 | |
12 | - public function __construct() |
|
13 | - { |
|
14 | - $this->container = []; |
|
15 | - } |
|
16 | - public function offsetSet($offset, $value) |
|
17 | - { |
|
18 | - if (is_null($offset)) { |
|
19 | - $this->container[] = $value; |
|
20 | - } else { |
|
21 | - $this->container[$offset] = $value; |
|
22 | - } |
|
23 | - } |
|
24 | - public function offsetExists($offset) |
|
25 | - { |
|
26 | - return isset($this->container[$offset]); |
|
27 | - } |
|
28 | - public function offsetUnset($offset) |
|
29 | - { |
|
30 | - unset($this->container[$offset]); |
|
31 | - } |
|
32 | - public function offsetGet($offset) |
|
33 | - { |
|
34 | - return isset($this->container[$offset]) ? $this->container[$offset] : null; |
|
35 | - } |
|
12 | + public function __construct() |
|
13 | + { |
|
14 | + $this->container = []; |
|
15 | + } |
|
16 | + public function offsetSet($offset, $value) |
|
17 | + { |
|
18 | + if (is_null($offset)) { |
|
19 | + $this->container[] = $value; |
|
20 | + } else { |
|
21 | + $this->container[$offset] = $value; |
|
22 | + } |
|
23 | + } |
|
24 | + public function offsetExists($offset) |
|
25 | + { |
|
26 | + return isset($this->container[$offset]); |
|
27 | + } |
|
28 | + public function offsetUnset($offset) |
|
29 | + { |
|
30 | + unset($this->container[$offset]); |
|
31 | + } |
|
32 | + public function offsetGet($offset) |
|
33 | + { |
|
34 | + return isset($this->container[$offset]) ? $this->container[$offset] : null; |
|
35 | + } |
|
36 | 36 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | */ |
14 | 14 | class ClassWithToString |
15 | 15 | { |
16 | - public function __toString() |
|
17 | - { |
|
18 | - return 'string representation'; |
|
19 | - } |
|
16 | + public function __toString() |
|
17 | + { |
|
18 | + return 'string representation'; |
|
19 | + } |
|
20 | 20 | } |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | class Success extends TestCase |
5 | 5 | { |
6 | - protected function runTest() |
|
7 | - { |
|
8 | - $this->assertTrue(true); |
|
9 | - } |
|
6 | + protected function runTest() |
|
7 | + { |
|
8 | + $this->assertTrue(true); |
|
9 | + } |
|
10 | 10 | } |
@@ -3,37 +3,37 @@ |
||
3 | 3 | |
4 | 4 | class DataProviderSkippedTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @dataProvider skippedTestProviderMethod |
|
8 | - */ |
|
9 | - public function testSkipped($a, $b, $c) |
|
10 | - { |
|
11 | - $this->assertTrue(true); |
|
12 | - } |
|
6 | + /** |
|
7 | + * @dataProvider skippedTestProviderMethod |
|
8 | + */ |
|
9 | + public function testSkipped($a, $b, $c) |
|
10 | + { |
|
11 | + $this->assertTrue(true); |
|
12 | + } |
|
13 | 13 | |
14 | - /** |
|
15 | - * @dataProvider providerMethod |
|
16 | - */ |
|
17 | - public function testAdd($a, $b, $c) |
|
18 | - { |
|
19 | - $this->assertEquals($c, $a + $b); |
|
20 | - } |
|
14 | + /** |
|
15 | + * @dataProvider providerMethod |
|
16 | + */ |
|
17 | + public function testAdd($a, $b, $c) |
|
18 | + { |
|
19 | + $this->assertEquals($c, $a + $b); |
|
20 | + } |
|
21 | 21 | |
22 | - public function skippedTestProviderMethod() |
|
23 | - { |
|
24 | - $this->markTestSkipped('skipped'); |
|
22 | + public function skippedTestProviderMethod() |
|
23 | + { |
|
24 | + $this->markTestSkipped('skipped'); |
|
25 | 25 | |
26 | - return [ |
|
27 | - [0, 0, 0], |
|
28 | - [0, 1, 1], |
|
29 | - ]; |
|
30 | - } |
|
26 | + return [ |
|
27 | + [0, 0, 0], |
|
28 | + [0, 1, 1], |
|
29 | + ]; |
|
30 | + } |
|
31 | 31 | |
32 | - public static function providerMethod() |
|
33 | - { |
|
34 | - return [ |
|
35 | - [0, 0, 0], |
|
36 | - [0, 1, 1], |
|
37 | - ]; |
|
38 | - } |
|
32 | + public static function providerMethod() |
|
33 | + { |
|
34 | + return [ |
|
35 | + [0, 0, 0], |
|
36 | + [0, 1, 1], |
|
37 | + ]; |
|
38 | + } |
|
39 | 39 | } |