@@ -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 | } |
@@ -5,7 +5,7 @@ |
||
5 | 5 | { |
6 | 6 | public function testCreateAndThrowNewExceptionInProcessIsolation() |
7 | 7 | { |
8 | - require_once __DIR__ . '/NewException.php'; |
|
8 | + require_once __DIR__.'/NewException.php'; |
|
9 | 9 | throw new NewException('Testing GH-74'); |
10 | 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 | } |
@@ -3,18 +3,18 @@ |
||
3 | 3 | |
4 | 4 | class Issue1149Test extends TestCase |
5 | 5 | { |
6 | - public function testOne() |
|
7 | - { |
|
8 | - $this->assertTrue(true); |
|
9 | - print '1'; |
|
10 | - } |
|
6 | + public function testOne() |
|
7 | + { |
|
8 | + $this->assertTrue(true); |
|
9 | + print '1'; |
|
10 | + } |
|
11 | 11 | |
12 | - /** |
|
13 | - * @runInSeparateProcess |
|
14 | - */ |
|
15 | - public function testTwo() |
|
16 | - { |
|
17 | - $this->assertTrue(true); |
|
18 | - print '2'; |
|
19 | - } |
|
12 | + /** |
|
13 | + * @runInSeparateProcess |
|
14 | + */ |
|
15 | + public function testTwo() |
|
16 | + { |
|
17 | + $this->assertTrue(true); |
|
18 | + print '2'; |
|
19 | + } |
|
20 | 20 | } |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | class Issue1330Test extends TestCase |
5 | 5 | { |
6 | - public function testTrue() |
|
7 | - { |
|
8 | - $this->assertTrue(PHPUNIT_1330); |
|
9 | - } |
|
6 | + public function testTrue() |
|
7 | + { |
|
8 | + $this->assertTrue(PHPUNIT_1330); |
|
9 | + } |
|
10 | 10 | } |
@@ -3,14 +3,14 @@ |
||
3 | 3 | |
4 | 4 | class Issue1348Test extends TestCase |
5 | 5 | { |
6 | - public function testSTDOUT() |
|
7 | - { |
|
8 | - fwrite(STDOUT, "\nSTDOUT does not break test result\n"); |
|
9 | - $this->assertTrue(true); |
|
10 | - } |
|
6 | + public function testSTDOUT() |
|
7 | + { |
|
8 | + fwrite(STDOUT, "\nSTDOUT does not break test result\n"); |
|
9 | + $this->assertTrue(true); |
|
10 | + } |
|
11 | 11 | |
12 | - public function testSTDERR() |
|
13 | - { |
|
14 | - fwrite(STDERR, 'STDERR works as usual.'); |
|
15 | - } |
|
12 | + public function testSTDERR() |
|
13 | + { |
|
14 | + fwrite(STDERR, 'STDERR works as usual.'); |
|
15 | + } |
|
16 | 16 | } |
@@ -3,12 +3,12 @@ |
||
3 | 3 | |
4 | 4 | class Issue1471Test extends TestCase |
5 | 5 | { |
6 | - public function testFailure() |
|
7 | - { |
|
8 | - $this->expectOutputString('*'); |
|
6 | + public function testFailure() |
|
7 | + { |
|
8 | + $this->expectOutputString('*'); |
|
9 | 9 | |
10 | - print '*'; |
|
10 | + print '*'; |
|
11 | 11 | |
12 | - $this->assertTrue(false); |
|
13 | - } |
|
12 | + $this->assertTrue(false); |
|
13 | + } |
|
14 | 14 | } |
@@ -3,30 +3,30 @@ |
||
3 | 3 | |
4 | 4 | class Issue2366 |
5 | 5 | { |
6 | - public function foo() |
|
7 | - { |
|
8 | - } |
|
6 | + public function foo() |
|
7 | + { |
|
8 | + } |
|
9 | 9 | } |
10 | 10 | |
11 | 11 | class Issue2366Test extends TestCase |
12 | 12 | { |
13 | - /** |
|
14 | - * @dataProvider provider |
|
15 | - */ |
|
16 | - public function testOne($o) |
|
17 | - { |
|
18 | - $this->assertEquals(1, $o->foo()); |
|
19 | - } |
|
13 | + /** |
|
14 | + * @dataProvider provider |
|
15 | + */ |
|
16 | + public function testOne($o) |
|
17 | + { |
|
18 | + $this->assertEquals(1, $o->foo()); |
|
19 | + } |
|
20 | 20 | |
21 | - public function provider() |
|
22 | - { |
|
23 | - $o = $this->createMock(Issue2366::class); |
|
21 | + public function provider() |
|
22 | + { |
|
23 | + $o = $this->createMock(Issue2366::class); |
|
24 | 24 | |
25 | - $o->method('foo')->willReturn(1); |
|
25 | + $o->method('foo')->willReturn(1); |
|
26 | 26 | |
27 | - return [ |
|
28 | - [$o], |
|
29 | - [$o] |
|
30 | - ]; |
|
31 | - } |
|
27 | + return [ |
|
28 | + [$o], |
|
29 | + [$o] |
|
30 | + ]; |
|
31 | + } |
|
32 | 32 | } |