@@ -3,23 +3,23 @@ |
||
3 | 3 | |
4 | 4 | class Issue2158Test extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * Set constant in main process |
|
8 | - */ |
|
9 | - public function testSomething() |
|
10 | - { |
|
11 | - include __DIR__ . '/constant.inc'; |
|
12 | - $this->assertTrue(true); |
|
13 | - } |
|
6 | + /** |
|
7 | + * Set constant in main process |
|
8 | + */ |
|
9 | + public function testSomething() |
|
10 | + { |
|
11 | + include __DIR__ . '/constant.inc'; |
|
12 | + $this->assertTrue(true); |
|
13 | + } |
|
14 | 14 | |
15 | - /** |
|
16 | - * Constant defined previously in main process constant should be available and |
|
17 | - * no errors should be yielded by reload of included files |
|
18 | - * |
|
19 | - * @runInSeparateProcess |
|
20 | - */ |
|
21 | - public function testSomethingElse() |
|
22 | - { |
|
23 | - $this->assertTrue(defined('TEST_CONSTANT')); |
|
24 | - } |
|
15 | + /** |
|
16 | + * Constant defined previously in main process constant should be available and |
|
17 | + * no errors should be yielded by reload of included files |
|
18 | + * |
|
19 | + * @runInSeparateProcess |
|
20 | + */ |
|
21 | + public function testSomethingElse() |
|
22 | + { |
|
23 | + $this->assertTrue(defined('TEST_CONSTANT')); |
|
24 | + } |
|
25 | 25 | } |
@@ -3,9 +3,9 @@ |
||
3 | 3 | |
4 | 4 | class Issue1437Test extends TestCase |
5 | 5 | { |
6 | - public function testFailure() |
|
7 | - { |
|
8 | - ob_start(); |
|
9 | - $this->assertTrue(false); |
|
10 | - } |
|
6 | + public function testFailure() |
|
7 | + { |
|
8 | + ob_start(); |
|
9 | + $this->assertTrue(false); |
|
10 | + } |
|
11 | 11 | } |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | class Issue2811Test extends PHPUnit\Framework\TestCase |
3 | 3 | { |
4 | - public function testOne() |
|
5 | - { |
|
6 | - $this->expectExceptionMessage('hello'); |
|
4 | + public function testOne() |
|
5 | + { |
|
6 | + $this->expectExceptionMessage('hello'); |
|
7 | 7 | |
8 | - throw new \Exception('hello'); |
|
9 | - } |
|
8 | + throw new \Exception('hello'); |
|
9 | + } |
|
10 | 10 | } |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | class Issue2145Test extends PHPUnit\Framework\TestCase |
3 | 3 | { |
4 | - public static function setUpBeforeClass() |
|
5 | - { |
|
6 | - throw new Exception; |
|
7 | - } |
|
4 | + public static function setUpBeforeClass() |
|
5 | + { |
|
6 | + throw new Exception; |
|
7 | + } |
|
8 | 8 | |
9 | - public function testOne() |
|
10 | - { |
|
11 | - } |
|
9 | + public function testOne() |
|
10 | + { |
|
11 | + } |
|
12 | 12 | |
13 | - public function testTwo() |
|
14 | - { |
|
15 | - } |
|
13 | + public function testTwo() |
|
14 | + { |
|
15 | + } |
|
16 | 16 | } |
@@ -3,19 +3,19 @@ |
||
3 | 3 | |
4 | 4 | class Issue322Test extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @group one |
|
8 | - */ |
|
9 | - public function testOne() |
|
10 | - { |
|
11 | - $this->assertTrue(true); |
|
12 | - } |
|
6 | + /** |
|
7 | + * @group one |
|
8 | + */ |
|
9 | + public function testOne() |
|
10 | + { |
|
11 | + $this->assertTrue(true); |
|
12 | + } |
|
13 | 13 | |
14 | - /** |
|
15 | - * @group two |
|
16 | - */ |
|
17 | - public function testTwo() |
|
18 | - { |
|
19 | - $this->assertTrue(true); |
|
20 | - } |
|
14 | + /** |
|
15 | + * @group two |
|
16 | + */ |
|
17 | + public function testTwo() |
|
18 | + { |
|
19 | + $this->assertTrue(true); |
|
20 | + } |
|
21 | 21 | } |
@@ -3,9 +3,9 @@ |
||
3 | 3 | |
4 | 4 | class Issue74Test extends TestCase |
5 | 5 | { |
6 | - public function testCreateAndThrowNewExceptionInProcessIsolation() |
|
7 | - { |
|
8 | - require_once __DIR__ . '/NewException.php'; |
|
9 | - throw new NewException('Testing GH-74'); |
|
10 | - } |
|
6 | + public function testCreateAndThrowNewExceptionInProcessIsolation() |
|
7 | + { |
|
8 | + require_once __DIR__ . '/NewException.php'; |
|
9 | + throw new NewException('Testing GH-74'); |
|
10 | + } |
|
11 | 11 | } |
@@ -1,33 +1,33 @@ |
||
1 | 1 | <?php |
2 | 2 | class Issue2137Test extends PHPUnit\Framework\TestCase |
3 | 3 | { |
4 | - /** |
|
5 | - * @dataProvider provideBrandService |
|
6 | - * @param $provided |
|
7 | - * @param $expected |
|
8 | - */ |
|
9 | - public function testBrandService($provided, $expected) |
|
10 | - { |
|
11 | - $this->assertSame($provided, $expected); |
|
12 | - } |
|
4 | + /** |
|
5 | + * @dataProvider provideBrandService |
|
6 | + * @param $provided |
|
7 | + * @param $expected |
|
8 | + */ |
|
9 | + public function testBrandService($provided, $expected) |
|
10 | + { |
|
11 | + $this->assertSame($provided, $expected); |
|
12 | + } |
|
13 | 13 | |
14 | 14 | |
15 | - public function provideBrandService() |
|
16 | - { |
|
17 | - return [ |
|
18 | - //[true, true] |
|
19 | - new stdClass() // not valid |
|
20 | - ]; |
|
21 | - } |
|
15 | + public function provideBrandService() |
|
16 | + { |
|
17 | + return [ |
|
18 | + //[true, true] |
|
19 | + new stdClass() // not valid |
|
20 | + ]; |
|
21 | + } |
|
22 | 22 | |
23 | 23 | |
24 | - /** |
|
25 | - * @dataProvider provideBrandService |
|
26 | - * @param $provided |
|
27 | - * @param $expected |
|
28 | - */ |
|
29 | - public function testSomethingElseInvalid($provided, $expected) |
|
30 | - { |
|
31 | - $this->assertSame($provided, $expected); |
|
32 | - } |
|
24 | + /** |
|
25 | + * @dataProvider provideBrandService |
|
26 | + * @param $provided |
|
27 | + * @param $expected |
|
28 | + */ |
|
29 | + public function testSomethingElseInvalid($provided, $expected) |
|
30 | + { |
|
31 | + $this->assertSame($provided, $expected); |
|
32 | + } |
|
33 | 33 | } |
@@ -3,19 +3,19 @@ |
||
3 | 3 | |
4 | 4 | class Issue2380Test extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @dataProvider generatorData |
|
8 | - */ |
|
9 | - public function testGeneratorProvider($data) |
|
10 | - { |
|
11 | - $this->assertNotEmpty($data); |
|
12 | - } |
|
6 | + /** |
|
7 | + * @dataProvider generatorData |
|
8 | + */ |
|
9 | + public function testGeneratorProvider($data) |
|
10 | + { |
|
11 | + $this->assertNotEmpty($data); |
|
12 | + } |
|
13 | 13 | |
14 | - /** |
|
15 | - * @return Generator |
|
16 | - */ |
|
17 | - public function generatorData() |
|
18 | - { |
|
19 | - yield ['testing']; |
|
20 | - } |
|
14 | + /** |
|
15 | + * @return Generator |
|
16 | + */ |
|
17 | + public function generatorData() |
|
18 | + { |
|
19 | + yield ['testing']; |
|
20 | + } |
|
21 | 21 | } |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | class Issue1570Test extends TestCase |
5 | 5 | { |
6 | - public function testOne() |
|
7 | - { |
|
8 | - print '*'; |
|
9 | - } |
|
6 | + public function testOne() |
|
7 | + { |
|
8 | + print '*'; |
|
9 | + } |
|
10 | 10 | } |