@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | class ConcreteWithMyCustomExtensionTest 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,75 +3,75 @@ |
||
3 | 3 | |
4 | 4 | class MultipleDataProviderTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @dataProvider providerA |
|
8 | - * @dataProvider providerB |
|
9 | - * @dataProvider providerC |
|
10 | - */ |
|
11 | - public function testOne() |
|
12 | - { |
|
13 | - } |
|
6 | + /** |
|
7 | + * @dataProvider providerA |
|
8 | + * @dataProvider providerB |
|
9 | + * @dataProvider providerC |
|
10 | + */ |
|
11 | + public function testOne() |
|
12 | + { |
|
13 | + } |
|
14 | 14 | |
15 | - /** |
|
16 | - * @dataProvider providerD |
|
17 | - * @dataProvider providerE |
|
18 | - * @dataProvider providerF |
|
19 | - */ |
|
20 | - public function testTwo() |
|
21 | - { |
|
22 | - } |
|
15 | + /** |
|
16 | + * @dataProvider providerD |
|
17 | + * @dataProvider providerE |
|
18 | + * @dataProvider providerF |
|
19 | + */ |
|
20 | + public function testTwo() |
|
21 | + { |
|
22 | + } |
|
23 | 23 | |
24 | - public static function providerA() |
|
25 | - { |
|
26 | - return [ |
|
27 | - ['ok', null, null], |
|
28 | - ['ok', null, null], |
|
29 | - ['ok', null, null] |
|
30 | - ]; |
|
31 | - } |
|
24 | + public static function providerA() |
|
25 | + { |
|
26 | + return [ |
|
27 | + ['ok', null, null], |
|
28 | + ['ok', null, null], |
|
29 | + ['ok', null, null] |
|
30 | + ]; |
|
31 | + } |
|
32 | 32 | |
33 | - public static function providerB() |
|
34 | - { |
|
35 | - return [ |
|
36 | - [null, 'ok', null], |
|
37 | - [null, 'ok', null], |
|
38 | - [null, 'ok', null] |
|
39 | - ]; |
|
40 | - } |
|
33 | + public static function providerB() |
|
34 | + { |
|
35 | + return [ |
|
36 | + [null, 'ok', null], |
|
37 | + [null, 'ok', null], |
|
38 | + [null, 'ok', null] |
|
39 | + ]; |
|
40 | + } |
|
41 | 41 | |
42 | - public static function providerC() |
|
43 | - { |
|
44 | - return [ |
|
45 | - [null, null, 'ok'], |
|
46 | - [null, null, 'ok'], |
|
47 | - [null, null, 'ok'] |
|
48 | - ]; |
|
49 | - } |
|
42 | + public static function providerC() |
|
43 | + { |
|
44 | + return [ |
|
45 | + [null, null, 'ok'], |
|
46 | + [null, null, 'ok'], |
|
47 | + [null, null, 'ok'] |
|
48 | + ]; |
|
49 | + } |
|
50 | 50 | |
51 | - public static function providerD() |
|
52 | - { |
|
53 | - yield ['ok', null, null]; |
|
54 | - yield ['ok', null, null]; |
|
55 | - yield ['ok', null, null]; |
|
56 | - } |
|
51 | + public static function providerD() |
|
52 | + { |
|
53 | + yield ['ok', null, null]; |
|
54 | + yield ['ok', null, null]; |
|
55 | + yield ['ok', null, null]; |
|
56 | + } |
|
57 | 57 | |
58 | - public static function providerE() |
|
59 | - { |
|
60 | - yield [null, 'ok', null]; |
|
61 | - yield [null, 'ok', null]; |
|
62 | - yield [null, 'ok', null]; |
|
63 | - } |
|
58 | + public static function providerE() |
|
59 | + { |
|
60 | + yield [null, 'ok', null]; |
|
61 | + yield [null, 'ok', null]; |
|
62 | + yield [null, 'ok', null]; |
|
63 | + } |
|
64 | 64 | |
65 | - public static function providerF() |
|
66 | - { |
|
67 | - $object = new ArrayObject( |
|
68 | - [ |
|
69 | - [null, null, 'ok'], |
|
70 | - [null, null, 'ok'], |
|
71 | - [null, null, 'ok'] |
|
72 | - ] |
|
73 | - ); |
|
65 | + public static function providerF() |
|
66 | + { |
|
67 | + $object = new ArrayObject( |
|
68 | + [ |
|
69 | + [null, null, 'ok'], |
|
70 | + [null, null, 'ok'], |
|
71 | + [null, null, 'ok'] |
|
72 | + ] |
|
73 | + ); |
|
74 | 74 | |
75 | - return $object->getIterator(); |
|
76 | - } |
|
75 | + return $object->getIterator(); |
|
76 | + } |
|
77 | 77 | } |
@@ -3,12 +3,12 @@ |
||
3 | 3 | |
4 | 4 | class NamespaceCoveragePublicTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @covers Foo\CoveredClass::<public> |
|
8 | - */ |
|
9 | - public function testSomething() |
|
10 | - { |
|
11 | - $o = new Foo\CoveredClass; |
|
12 | - $o->publicMethod(); |
|
13 | - } |
|
6 | + /** |
|
7 | + * @covers Foo\CoveredClass::<public> |
|
8 | + */ |
|
9 | + public function testSomething() |
|
10 | + { |
|
11 | + $o = new Foo\CoveredClass; |
|
12 | + $o->publicMethod(); |
|
13 | + } |
|
14 | 14 | } |
@@ -4,19 +4,19 @@ |
||
4 | 4 | |
5 | 5 | class TestDoxGroupTest extends TestCase |
6 | 6 | { |
7 | - /** |
|
8 | - * @group one |
|
9 | - */ |
|
10 | - public function testOne() |
|
11 | - { |
|
12 | - $this->assertTrue(true); |
|
13 | - } |
|
7 | + /** |
|
8 | + * @group one |
|
9 | + */ |
|
10 | + public function testOne() |
|
11 | + { |
|
12 | + $this->assertTrue(true); |
|
13 | + } |
|
14 | 14 | |
15 | - /** |
|
16 | - * @group two |
|
17 | - */ |
|
18 | - public function testTwo() |
|
19 | - { |
|
20 | - $this->assertTrue(true); |
|
21 | - } |
|
15 | + /** |
|
16 | + * @group two |
|
17 | + */ |
|
18 | + public function testTwo() |
|
19 | + { |
|
20 | + $this->assertTrue(true); |
|
21 | + } |
|
22 | 22 | } |
@@ -3,12 +3,12 @@ |
||
3 | 3 | |
4 | 4 | class NamespaceCoverageMethodTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @covers Foo\CoveredClass::publicMethod |
|
8 | - */ |
|
9 | - public function testSomething() |
|
10 | - { |
|
11 | - $o = new Foo\CoveredClass; |
|
12 | - $o->publicMethod(); |
|
13 | - } |
|
6 | + /** |
|
7 | + * @covers Foo\CoveredClass::publicMethod |
|
8 | + */ |
|
9 | + public function testSomething() |
|
10 | + { |
|
11 | + $o = new Foo\CoveredClass; |
|
12 | + $o->publicMethod(); |
|
13 | + } |
|
14 | 14 | } |
@@ -13,6 +13,6 @@ |
||
13 | 13 | */ |
14 | 14 | class Book |
15 | 15 | { |
16 | - // the order of properties is important for testing the cycle! |
|
17 | - public $author = null; |
|
16 | + // the order of properties is important for testing the cycle! |
|
17 | + public $author = null; |
|
18 | 18 | } |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | class TestSkipped extends TestCase |
5 | 5 | { |
6 | - protected function runTest() |
|
7 | - { |
|
8 | - $this->markTestSkipped('Skipped test'); |
|
9 | - } |
|
6 | + protected function runTest() |
|
7 | + { |
|
8 | + $this->markTestSkipped('Skipped test'); |
|
9 | + } |
|
10 | 10 | } |
@@ -3,35 +3,35 @@ |
||
3 | 3 | |
4 | 4 | class ExceptionInAssertPostConditionsTest extends TestCase |
5 | 5 | { |
6 | - public $setUp = false; |
|
7 | - public $assertPreConditions = false; |
|
8 | - public $assertPostConditions = false; |
|
9 | - public $tearDown = false; |
|
10 | - public $testSomething = false; |
|
6 | + public $setUp = false; |
|
7 | + public $assertPreConditions = false; |
|
8 | + public $assertPostConditions = false; |
|
9 | + public $tearDown = false; |
|
10 | + public $testSomething = false; |
|
11 | 11 | |
12 | - protected function setUp() |
|
13 | - { |
|
14 | - $this->setUp = true; |
|
15 | - } |
|
12 | + protected function setUp() |
|
13 | + { |
|
14 | + $this->setUp = true; |
|
15 | + } |
|
16 | 16 | |
17 | - protected function assertPreConditions() |
|
18 | - { |
|
19 | - $this->assertPreConditions = true; |
|
20 | - } |
|
17 | + protected function assertPreConditions() |
|
18 | + { |
|
19 | + $this->assertPreConditions = true; |
|
20 | + } |
|
21 | 21 | |
22 | - public function testSomething() |
|
23 | - { |
|
24 | - $this->testSomething = true; |
|
25 | - } |
|
22 | + public function testSomething() |
|
23 | + { |
|
24 | + $this->testSomething = true; |
|
25 | + } |
|
26 | 26 | |
27 | - protected function assertPostConditions() |
|
28 | - { |
|
29 | - $this->assertPostConditions = true; |
|
30 | - throw new Exception; |
|
31 | - } |
|
27 | + protected function assertPostConditions() |
|
28 | + { |
|
29 | + $this->assertPostConditions = true; |
|
30 | + throw new Exception; |
|
31 | + } |
|
32 | 32 | |
33 | - protected function tearDown() |
|
34 | - { |
|
35 | - $this->tearDown = true; |
|
36 | - } |
|
33 | + protected function tearDown() |
|
34 | + { |
|
35 | + $this->tearDown = true; |
|
36 | + } |
|
37 | 37 | } |
@@ -3,12 +3,12 @@ |
||
3 | 3 | |
4 | 4 | class NamespaceCoverageProtectedTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @covers Foo\CoveredClass::<protected> |
|
8 | - */ |
|
9 | - public function testSomething() |
|
10 | - { |
|
11 | - $o = new Foo\CoveredClass; |
|
12 | - $o->publicMethod(); |
|
13 | - } |
|
6 | + /** |
|
7 | + * @covers Foo\CoveredClass::<protected> |
|
8 | + */ |
|
9 | + public function testSomething() |
|
10 | + { |
|
11 | + $o = new Foo\CoveredClass; |
|
12 | + $o->publicMethod(); |
|
13 | + } |
|
14 | 14 | } |