@@ -2,37 +2,37 @@ |
||
2 | 2 | |
3 | 3 | class VariousIterableDataProviderTest |
4 | 4 | { |
5 | - /** |
|
6 | - * @dataProvider asArrayProvider |
|
7 | - * @dataProvider asIteratorProvider |
|
8 | - * @dataProvider asTraversableProvider |
|
9 | - */ |
|
10 | - public function test() |
|
11 | - { |
|
12 | - } |
|
5 | + /** |
|
6 | + * @dataProvider asArrayProvider |
|
7 | + * @dataProvider asIteratorProvider |
|
8 | + * @dataProvider asTraversableProvider |
|
9 | + */ |
|
10 | + public function test() |
|
11 | + { |
|
12 | + } |
|
13 | 13 | |
14 | - public static function asArrayProvider() |
|
15 | - { |
|
16 | - return [ |
|
17 | - ['A'], |
|
18 | - ['B'], |
|
19 | - ['C'], |
|
20 | - ]; |
|
21 | - } |
|
14 | + public static function asArrayProvider() |
|
15 | + { |
|
16 | + return [ |
|
17 | + ['A'], |
|
18 | + ['B'], |
|
19 | + ['C'], |
|
20 | + ]; |
|
21 | + } |
|
22 | 22 | |
23 | - public static function asIteratorProvider() |
|
24 | - { |
|
25 | - yield ['D']; |
|
26 | - yield ['E']; |
|
27 | - yield ['F']; |
|
28 | - } |
|
23 | + public static function asIteratorProvider() |
|
24 | + { |
|
25 | + yield ['D']; |
|
26 | + yield ['E']; |
|
27 | + yield ['F']; |
|
28 | + } |
|
29 | 29 | |
30 | - public static function asTraversableProvider() |
|
31 | - { |
|
32 | - return new WrapperIteratorAggregate([ |
|
33 | - ['G'], |
|
34 | - ['H'], |
|
35 | - ['I'], |
|
36 | - ]); |
|
37 | - } |
|
30 | + public static function asTraversableProvider() |
|
31 | + { |
|
32 | + return new WrapperIteratorAggregate([ |
|
33 | + ['G'], |
|
34 | + ['H'], |
|
35 | + ['I'], |
|
36 | + ]); |
|
37 | + } |
|
38 | 38 | } |
@@ -4,12 +4,12 @@ |
||
4 | 4 | |
5 | 5 | class FatalTest extends TestCase |
6 | 6 | { |
7 | - public function testFatalError() |
|
8 | - { |
|
9 | - if (extension_loaded('xdebug')) { |
|
10 | - xdebug_disable(); |
|
11 | - } |
|
7 | + public function testFatalError() |
|
8 | + { |
|
9 | + if (extension_loaded('xdebug')) { |
|
10 | + xdebug_disable(); |
|
11 | + } |
|
12 | 12 | |
13 | - eval('class FatalTest {}'); |
|
14 | - } |
|
13 | + eval('class FatalTest {}'); |
|
14 | + } |
|
15 | 15 | } |
@@ -3,13 +3,13 @@ |
||
3 | 3 | |
4 | 4 | class StopOnWarningTestSuite |
5 | 5 | { |
6 | - public static function suite() |
|
7 | - { |
|
8 | - $suite = new TestSuite('Test Warnings'); |
|
6 | + public static function suite() |
|
7 | + { |
|
8 | + $suite = new TestSuite('Test Warnings'); |
|
9 | 9 | |
10 | - $suite->addTestSuite(NoTestCases::class); |
|
11 | - $suite->addTestSuite(CoverageClassTest::class); |
|
10 | + $suite->addTestSuite(NoTestCases::class); |
|
11 | + $suite->addTestSuite(CoverageClassTest::class); |
|
12 | 12 | |
13 | - return $suite; |
|
14 | - } |
|
13 | + return $suite; |
|
14 | + } |
|
15 | 15 | } |
@@ -1,24 +1,24 @@ |
||
1 | 1 | <?php |
2 | 2 | class DataProviderDependencyTest extends PHPUnit\Framework\TestCase |
3 | 3 | { |
4 | - public function testReference() |
|
5 | - { |
|
6 | - $this->markTestSkipped('This test should be skipped.'); |
|
7 | - $this->assertTrue(true); |
|
8 | - } |
|
4 | + public function testReference() |
|
5 | + { |
|
6 | + $this->markTestSkipped('This test should be skipped.'); |
|
7 | + $this->assertTrue(true); |
|
8 | + } |
|
9 | 9 | |
10 | - /** |
|
11 | - * @see https://github.com/sebastianbergmann/phpunit/issues/1896 |
|
12 | - * @depends testReference |
|
13 | - * @dataProvider provider |
|
14 | - */ |
|
15 | - public function testDependency($param) |
|
16 | - { |
|
17 | - } |
|
10 | + /** |
|
11 | + * @see https://github.com/sebastianbergmann/phpunit/issues/1896 |
|
12 | + * @depends testReference |
|
13 | + * @dataProvider provider |
|
14 | + */ |
|
15 | + public function testDependency($param) |
|
16 | + { |
|
17 | + } |
|
18 | 18 | |
19 | - public function provider() |
|
20 | - { |
|
21 | - $this->markTestSkipped('Any test with this data provider should be skipped.'); |
|
22 | - return []; |
|
23 | - } |
|
19 | + public function provider() |
|
20 | + { |
|
21 | + $this->markTestSkipped('Any test with this data provider should be skipped.'); |
|
22 | + return []; |
|
23 | + } |
|
24 | 24 | } |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | class SampleClass |
3 | 3 | { |
4 | - public $a; |
|
5 | - public $b; |
|
6 | - public $c; |
|
4 | + public $a; |
|
5 | + public $b; |
|
6 | + public $c; |
|
7 | 7 | |
8 | - public function __construct($a, $b, $c) |
|
9 | - { |
|
10 | - $this->a = $a; |
|
11 | - $this->b = $b; |
|
12 | - $this->c = $c; |
|
13 | - } |
|
8 | + public function __construct($a, $b, $c) |
|
9 | + { |
|
10 | + $this->a = $a; |
|
11 | + $this->b = $b; |
|
12 | + $this->c = $c; |
|
13 | + } |
|
14 | 14 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | class ClassWithScalarTypeDeclarations |
3 | 3 | { |
4 | - public function foo(string $string, int $int) |
|
5 | - { |
|
6 | - } |
|
4 | + public function foo(string $string, int $int) |
|
5 | + { |
|
6 | + } |
|
7 | 7 | } |
@@ -3,24 +3,24 @@ |
||
3 | 3 | |
4 | 4 | class NotExistingCoveredElementTest extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @covers NotExistingClass |
|
8 | - */ |
|
9 | - public function testOne() |
|
10 | - { |
|
11 | - } |
|
6 | + /** |
|
7 | + * @covers NotExistingClass |
|
8 | + */ |
|
9 | + public function testOne() |
|
10 | + { |
|
11 | + } |
|
12 | 12 | |
13 | - /** |
|
14 | - * @covers NotExistingClass::notExistingMethod |
|
15 | - */ |
|
16 | - public function testTwo() |
|
17 | - { |
|
18 | - } |
|
13 | + /** |
|
14 | + * @covers NotExistingClass::notExistingMethod |
|
15 | + */ |
|
16 | + public function testTwo() |
|
17 | + { |
|
18 | + } |
|
19 | 19 | |
20 | - /** |
|
21 | - * @covers NotExistingClass::<public> |
|
22 | - */ |
|
23 | - public function testThree() |
|
24 | - { |
|
25 | - } |
|
20 | + /** |
|
21 | + * @covers NotExistingClass::<public> |
|
22 | + */ |
|
23 | + public function testThree() |
|
24 | + { |
|
25 | + } |
|
26 | 26 | } |
@@ -3,7 +3,7 @@ |
||
3 | 3 | |
4 | 4 | class NoTestCases extends TestCase |
5 | 5 | { |
6 | - public function noTestCase() |
|
7 | - { |
|
8 | - } |
|
6 | + public function noTestCase() |
|
7 | + { |
|
8 | + } |
|
9 | 9 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | class OverrideTestCase extends OneTestCase |
3 | 3 | { |
4 | - public function testCase($arg = '') |
|
5 | - { |
|
6 | - } |
|
4 | + public function testCase($arg = '') |
|
5 | + { |
|
6 | + } |
|
7 | 7 | } |