@@ -3,11 +3,11 @@ |
||
3 | 3 | |
4 | 4 | class OneTestCase extends TestCase |
5 | 5 | { |
6 | - public function noTestCase() |
|
7 | - { |
|
8 | - } |
|
6 | + public function noTestCase() |
|
7 | + { |
|
8 | + } |
|
9 | 9 | |
10 | - public function testCase($arg = '') |
|
11 | - { |
|
12 | - } |
|
10 | + public function testCase($arg = '') |
|
11 | + { |
|
12 | + } |
|
13 | 13 | } |
@@ -9,14 +9,14 @@ |
||
9 | 9 | */ |
10 | 10 | class RequirementsClassDocBlockTest |
11 | 11 | { |
12 | - /** |
|
13 | - * @requires PHP 5.4 |
|
14 | - * @requires PHPUnit 3.7 |
|
15 | - * @requires OS WINNT |
|
16 | - * @requires function testFuncMethod |
|
17 | - * @requires extension testExtMethod |
|
18 | - */ |
|
19 | - public function testMethod() |
|
20 | - { |
|
21 | - } |
|
12 | + /** |
|
13 | + * @requires PHP 5.4 |
|
14 | + * @requires PHPUnit 3.7 |
|
15 | + * @requires OS WINNT |
|
16 | + * @requires function testFuncMethod |
|
17 | + * @requires extension testExtMethod |
|
18 | + */ |
|
19 | + public function testMethod() |
|
20 | + { |
|
21 | + } |
|
22 | 22 | } |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | class IncompleteTest extends TestCase |
5 | 5 | { |
6 | - public function testIncomplete() |
|
7 | - { |
|
8 | - $this->markTestIncomplete('Test incomplete'); |
|
9 | - } |
|
6 | + public function testIncomplete() |
|
7 | + { |
|
8 | + $this->markTestIncomplete('Test incomplete'); |
|
9 | + } |
|
10 | 10 | } |
@@ -6,12 +6,12 @@ |
||
6 | 6 | */ |
7 | 7 | class CoverageTwoDefaultClassAnnotations |
8 | 8 | { |
9 | - /** |
|
10 | - * @covers Foo\CoveredClass::<public> |
|
11 | - */ |
|
12 | - public function testSomething() |
|
13 | - { |
|
14 | - $o = new Foo\CoveredClass; |
|
15 | - $o->publicMethod(); |
|
16 | - } |
|
9 | + /** |
|
10 | + * @covers Foo\CoveredClass::<public> |
|
11 | + */ |
|
12 | + public function testSomething() |
|
13 | + { |
|
14 | + $o = new Foo\CoveredClass; |
|
15 | + $o->publicMethod(); |
|
16 | + } |
|
17 | 17 | } |
@@ -3,35 +3,35 @@ |
||
3 | 3 | |
4 | 4 | class ExceptionInTearDownTest 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 | - } |
|
27 | + protected function assertPostConditions() |
|
28 | + { |
|
29 | + $this->assertPostConditions = true; |
|
30 | + } |
|
31 | 31 | |
32 | - protected function tearDown() |
|
33 | - { |
|
34 | - $this->tearDown = true; |
|
35 | - throw new Exception; |
|
36 | - } |
|
32 | + protected function tearDown() |
|
33 | + { |
|
34 | + $this->tearDown = true; |
|
35 | + throw new Exception; |
|
36 | + } |
|
37 | 37 | } |
@@ -3,21 +3,21 @@ |
||
3 | 3 | |
4 | 4 | class DataProviderTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @dataProvider providerMethod |
|
8 | - */ |
|
9 | - public function testAdd($a, $b, $c) |
|
10 | - { |
|
11 | - $this->assertEquals($c, $a + $b); |
|
12 | - } |
|
6 | + /** |
|
7 | + * @dataProvider providerMethod |
|
8 | + */ |
|
9 | + public function testAdd($a, $b, $c) |
|
10 | + { |
|
11 | + $this->assertEquals($c, $a + $b); |
|
12 | + } |
|
13 | 13 | |
14 | - public static function providerMethod() |
|
15 | - { |
|
16 | - return [ |
|
17 | - [0, 0, 0], |
|
18 | - [0, 1, 1], |
|
19 | - [1, 1, 3], |
|
20 | - [1, 0, 1] |
|
21 | - ]; |
|
22 | - } |
|
14 | + public static function providerMethod() |
|
15 | + { |
|
16 | + return [ |
|
17 | + [0, 0, 0], |
|
18 | + [0, 1, 1], |
|
19 | + [1, 1, 3], |
|
20 | + [1, 0, 1] |
|
21 | + ]; |
|
22 | + } |
|
23 | 23 | } |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | abstract class AbstractTest 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 | } |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | class IniTest extends TestCase |
5 | 5 | { |
6 | - public function testIni() |
|
7 | - { |
|
8 | - $this->assertEquals('application/x-test', ini_get('default_mimetype')); |
|
9 | - } |
|
6 | + public function testIni() |
|
7 | + { |
|
8 | + $this->assertEquals('application/x-test', ini_get('default_mimetype')); |
|
9 | + } |
|
10 | 10 | } |
@@ -5,15 +5,15 @@ |
||
5 | 5 | * same class. */ |
6 | 6 | class TestIteratorAggregate2 implements IteratorAggregate |
7 | 7 | { |
8 | - private $traversable; |
|
8 | + private $traversable; |
|
9 | 9 | |
10 | - public function __construct(\Traversable $traversable) |
|
11 | - { |
|
12 | - $this->traversable = $traversable; |
|
13 | - } |
|
10 | + public function __construct(\Traversable $traversable) |
|
11 | + { |
|
12 | + $this->traversable = $traversable; |
|
13 | + } |
|
14 | 14 | |
15 | - public function getIterator() |
|
16 | - { |
|
17 | - return $this->traversable; |
|
18 | - } |
|
15 | + public function getIterator() |
|
16 | + { |
|
17 | + return $this->traversable; |
|
18 | + } |
|
19 | 19 | } |