@@ -3,12 +3,12 @@ |
||
3 | 3 | |
4 | 4 | class CoverageNotPublicTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @covers CoveredClass::<!public> |
|
8 | - */ |
|
9 | - public function testSomething() |
|
10 | - { |
|
11 | - $o = new CoveredClass; |
|
12 | - $o->publicMethod(); |
|
13 | - } |
|
6 | + /** |
|
7 | + * @covers CoveredClass::<!public> |
|
8 | + */ |
|
9 | + public function testSomething() |
|
10 | + { |
|
11 | + $o = new CoveredClass; |
|
12 | + $o->publicMethod(); |
|
13 | + } |
|
14 | 14 | } |
@@ -3,11 +3,11 @@ |
||
3 | 3 | |
4 | 4 | class CoverageFunctionParenthesesTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @covers ::globalFunction() |
|
8 | - */ |
|
9 | - public function testSomething() |
|
10 | - { |
|
11 | - globalFunction(); |
|
12 | - } |
|
6 | + /** |
|
7 | + * @covers ::globalFunction() |
|
8 | + */ |
|
9 | + public function testSomething() |
|
10 | + { |
|
11 | + globalFunction(); |
|
12 | + } |
|
13 | 13 | } |
@@ -3,12 +3,12 @@ |
||
3 | 3 | |
4 | 4 | class NamespaceCoverageNotPrivateTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @covers Foo\CoveredClass::<!private> |
|
8 | - */ |
|
9 | - public function testSomething() |
|
10 | - { |
|
11 | - $o = new Foo\CoveredClass; |
|
12 | - $o->publicMethod(); |
|
13 | - } |
|
6 | + /** |
|
7 | + * @covers Foo\CoveredClass::<!private> |
|
8 | + */ |
|
9 | + public function testSomething() |
|
10 | + { |
|
11 | + $o = new Foo\CoveredClass; |
|
12 | + $o->publicMethod(); |
|
13 | + } |
|
14 | 14 | } |
@@ -3,12 +3,12 @@ |
||
3 | 3 | |
4 | 4 | class CoverageProtectedTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @covers CoveredClass::<protected> |
|
8 | - */ |
|
9 | - public function testSomething() |
|
10 | - { |
|
11 | - $o = new CoveredClass; |
|
12 | - $o->publicMethod(); |
|
13 | - } |
|
6 | + /** |
|
7 | + * @covers CoveredClass::<protected> |
|
8 | + */ |
|
9 | + public function testSomething() |
|
10 | + { |
|
11 | + $o = new CoveredClass; |
|
12 | + $o->publicMethod(); |
|
13 | + } |
|
14 | 14 | } |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | if ($neverHappens) { |
3 | - // @codeCoverageIgnoreStart |
|
4 | - print '*'; |
|
5 | - // @codeCoverageIgnoreEnd |
|
3 | + // @codeCoverageIgnoreStart |
|
4 | + print '*'; |
|
5 | + // @codeCoverageIgnoreEnd |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | /** |
@@ -10,28 +10,28 @@ discard block |
||
10 | 10 | */ |
11 | 11 | class Foo |
12 | 12 | { |
13 | - public function bar() |
|
14 | - { |
|
15 | - } |
|
13 | + public function bar() |
|
14 | + { |
|
15 | + } |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | class Bar |
19 | 19 | { |
20 | - /** |
|
21 | - * @codeCoverageIgnore |
|
22 | - */ |
|
23 | - public function foo() |
|
24 | - { |
|
25 | - } |
|
20 | + /** |
|
21 | + * @codeCoverageIgnore |
|
22 | + */ |
|
23 | + public function foo() |
|
24 | + { |
|
25 | + } |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | function baz() |
29 | 29 | { |
30 | - print '*'; // @codeCoverageIgnore |
|
30 | + print '*'; // @codeCoverageIgnore |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | interface Bor |
34 | 34 | { |
35 | - public function foo(); |
|
35 | + public function foo(); |
|
36 | 36 | |
37 | 37 | } |
@@ -3,12 +3,12 @@ |
||
3 | 3 | |
4 | 4 | class CoverageMethodTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @covers CoveredClass::publicMethod |
|
8 | - */ |
|
9 | - public function testSomething() |
|
10 | - { |
|
11 | - $o = new CoveredClass; |
|
12 | - $o->publicMethod(); |
|
13 | - } |
|
6 | + /** |
|
7 | + * @covers CoveredClass::publicMethod |
|
8 | + */ |
|
9 | + public function testSomething() |
|
10 | + { |
|
11 | + $o = new CoveredClass; |
|
12 | + $o->publicMethod(); |
|
13 | + } |
|
14 | 14 | } |
@@ -2,18 +2,18 @@ |
||
2 | 2 | |
3 | 3 | class CoveredClassWithAnonymousFunctionInStaticMethod |
4 | 4 | { |
5 | - public static function runAnonymous() |
|
6 | - { |
|
7 | - $filter = ['abc124', 'abc123', '123']; |
|
5 | + public static function runAnonymous() |
|
6 | + { |
|
7 | + $filter = ['abc124', 'abc123', '123']; |
|
8 | 8 | |
9 | - array_walk( |
|
10 | - $filter, |
|
11 | - function (&$val, $key) { |
|
12 | - $val = preg_replace('|[^0-9]|', '', $val); |
|
13 | - } |
|
14 | - ); |
|
9 | + array_walk( |
|
10 | + $filter, |
|
11 | + function (&$val, $key) { |
|
12 | + $val = preg_replace('|[^0-9]|', '', $val); |
|
13 | + } |
|
14 | + ); |
|
15 | 15 | |
16 | - // Should be covered |
|
17 | - $extravar = true; |
|
18 | - } |
|
16 | + // Should be covered |
|
17 | + $extravar = true; |
|
18 | + } |
|
19 | 19 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | |
9 | 9 | array_walk( |
10 | 10 | $filter, |
11 | - function (&$val, $key) { |
|
11 | + function(&$val, $key) { |
|
12 | 12 | $val = preg_replace('|[^0-9]|', '', $val); |
13 | 13 | } |
14 | 14 | ); |
@@ -3,12 +3,12 @@ |
||
3 | 3 | |
4 | 4 | class NamespaceCoverageNotProtectedTest 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 | } |
@@ -3,11 +3,11 @@ |
||
3 | 3 | |
4 | 4 | class CoverageFunctionTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @covers ::globalFunction |
|
8 | - */ |
|
9 | - public function testSomething() |
|
10 | - { |
|
11 | - globalFunction(); |
|
12 | - } |
|
6 | + /** |
|
7 | + * @covers ::globalFunction |
|
8 | + */ |
|
9 | + public function testSomething() |
|
10 | + { |
|
11 | + globalFunction(); |
|
12 | + } |
|
13 | 13 | } |