@@ -3,10 +3,10 @@ |
||
3 | 3 | |
4 | 4 | class Issue797Test extends TestCase |
5 | 5 | { |
6 | - protected $preserveGlobalState = false; |
|
6 | + protected $preserveGlobalState = false; |
|
7 | 7 | |
8 | - public function testBootstrapPhpIsExecutedInIsolation() |
|
9 | - { |
|
10 | - $this->assertEquals(GITHUB_ISSUE, 797); |
|
11 | - } |
|
8 | + public function testBootstrapPhpIsExecutedInIsolation() |
|
9 | + { |
|
10 | + $this->assertEquals(GITHUB_ISSUE, 797); |
|
11 | + } |
|
12 | 12 | } |
@@ -6,18 +6,18 @@ |
||
6 | 6 | */ |
7 | 7 | class Issue1374Test extends TestCase |
8 | 8 | { |
9 | - protected function setUp() |
|
10 | - { |
|
11 | - print __FUNCTION__; |
|
12 | - } |
|
9 | + protected function setUp() |
|
10 | + { |
|
11 | + print __FUNCTION__; |
|
12 | + } |
|
13 | 13 | |
14 | - public function testSomething() |
|
15 | - { |
|
16 | - $this->fail('This should not be reached'); |
|
17 | - } |
|
14 | + public function testSomething() |
|
15 | + { |
|
16 | + $this->fail('This should not be reached'); |
|
17 | + } |
|
18 | 18 | |
19 | - protected function tearDown() |
|
20 | - { |
|
21 | - print __FUNCTION__; |
|
22 | - } |
|
19 | + protected function tearDown() |
|
20 | + { |
|
21 | + print __FUNCTION__; |
|
22 | + } |
|
23 | 23 | } |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | class Issue1265Test extends TestCase |
5 | 5 | { |
6 | - public function testTrue() |
|
7 | - { |
|
8 | - $this->assertTrue(true); |
|
9 | - } |
|
6 | + public function testTrue() |
|
7 | + { |
|
8 | + $this->assertTrue(true); |
|
9 | + } |
|
10 | 10 | } |
@@ -3,19 +3,19 @@ |
||
3 | 3 | |
4 | 4 | class Issue1337Test extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @dataProvider dataProvider |
|
8 | - */ |
|
9 | - public function testProvider($a) |
|
10 | - { |
|
11 | - $this->assertTrue($a); |
|
12 | - } |
|
6 | + /** |
|
7 | + * @dataProvider dataProvider |
|
8 | + */ |
|
9 | + public function testProvider($a) |
|
10 | + { |
|
11 | + $this->assertTrue($a); |
|
12 | + } |
|
13 | 13 | |
14 | - public function dataProvider() |
|
15 | - { |
|
16 | - return [ |
|
17 | - 'c:\\'=> [true], |
|
18 | - 0.9 => [true] |
|
19 | - ]; |
|
20 | - } |
|
14 | + public function dataProvider() |
|
15 | + { |
|
16 | + return [ |
|
17 | + 'c:\\'=> [true], |
|
18 | + 0.9 => [true] |
|
19 | + ]; |
|
20 | + } |
|
21 | 21 | } |
@@ -7,63 +7,63 @@ |
||
7 | 7 | */ |
8 | 8 | class Issue1335Test extends TestCase |
9 | 9 | { |
10 | - public function testGlobalString() |
|
11 | - { |
|
12 | - $this->assertEquals('Hello', $GLOBALS['globalString']); |
|
13 | - } |
|
10 | + public function testGlobalString() |
|
11 | + { |
|
12 | + $this->assertEquals('Hello', $GLOBALS['globalString']); |
|
13 | + } |
|
14 | 14 | |
15 | - public function testGlobalIntTruthy() |
|
16 | - { |
|
17 | - $this->assertEquals(1, $GLOBALS['globalIntTruthy']); |
|
18 | - } |
|
15 | + public function testGlobalIntTruthy() |
|
16 | + { |
|
17 | + $this->assertEquals(1, $GLOBALS['globalIntTruthy']); |
|
18 | + } |
|
19 | 19 | |
20 | - public function testGlobalIntFalsey() |
|
21 | - { |
|
22 | - $this->assertEquals(0, $GLOBALS['globalIntFalsey']); |
|
23 | - } |
|
20 | + public function testGlobalIntFalsey() |
|
21 | + { |
|
22 | + $this->assertEquals(0, $GLOBALS['globalIntFalsey']); |
|
23 | + } |
|
24 | 24 | |
25 | - public function testGlobalFloat() |
|
26 | - { |
|
27 | - $this->assertEquals(1.123, $GLOBALS['globalFloat']); |
|
28 | - } |
|
25 | + public function testGlobalFloat() |
|
26 | + { |
|
27 | + $this->assertEquals(1.123, $GLOBALS['globalFloat']); |
|
28 | + } |
|
29 | 29 | |
30 | - public function testGlobalBoolTrue() |
|
31 | - { |
|
32 | - $this->assertTrue($GLOBALS['globalBoolTrue']); |
|
33 | - } |
|
30 | + public function testGlobalBoolTrue() |
|
31 | + { |
|
32 | + $this->assertTrue($GLOBALS['globalBoolTrue']); |
|
33 | + } |
|
34 | 34 | |
35 | - public function testGlobalBoolFalse() |
|
36 | - { |
|
37 | - $this->assertFalse($GLOBALS['globalBoolFalse']); |
|
38 | - } |
|
35 | + public function testGlobalBoolFalse() |
|
36 | + { |
|
37 | + $this->assertFalse($GLOBALS['globalBoolFalse']); |
|
38 | + } |
|
39 | 39 | |
40 | - public function testGlobalNull() |
|
41 | - { |
|
42 | - $this->assertEquals(null, $GLOBALS['globalNull']); |
|
43 | - } |
|
40 | + public function testGlobalNull() |
|
41 | + { |
|
42 | + $this->assertEquals(null, $GLOBALS['globalNull']); |
|
43 | + } |
|
44 | 44 | |
45 | - public function testGlobalArray() |
|
46 | - { |
|
47 | - $this->assertEquals(['foo'], $GLOBALS['globalArray']); |
|
48 | - } |
|
45 | + public function testGlobalArray() |
|
46 | + { |
|
47 | + $this->assertEquals(['foo'], $GLOBALS['globalArray']); |
|
48 | + } |
|
49 | 49 | |
50 | - public function testGlobalNestedArray() |
|
51 | - { |
|
52 | - $this->assertEquals([['foo']], $GLOBALS['globalNestedArray']); |
|
53 | - } |
|
50 | + public function testGlobalNestedArray() |
|
51 | + { |
|
52 | + $this->assertEquals([['foo']], $GLOBALS['globalNestedArray']); |
|
53 | + } |
|
54 | 54 | |
55 | - public function testGlobalObject() |
|
56 | - { |
|
57 | - $this->assertEquals((object) ['foo'=> 'bar'], $GLOBALS['globalObject']); |
|
58 | - } |
|
55 | + public function testGlobalObject() |
|
56 | + { |
|
57 | + $this->assertEquals((object) ['foo'=> 'bar'], $GLOBALS['globalObject']); |
|
58 | + } |
|
59 | 59 | |
60 | - public function testGlobalObjectWithBackSlashString() |
|
61 | - { |
|
62 | - $this->assertEquals((object) ['foo'=> 'back\\slash'], $GLOBALS['globalObjectWithBackSlashString']); |
|
63 | - } |
|
60 | + public function testGlobalObjectWithBackSlashString() |
|
61 | + { |
|
62 | + $this->assertEquals((object) ['foo'=> 'back\\slash'], $GLOBALS['globalObjectWithBackSlashString']); |
|
63 | + } |
|
64 | 64 | |
65 | - public function testGlobalObjectWithDoubleBackSlashString() |
|
66 | - { |
|
67 | - $this->assertEquals((object) ['foo'=> 'back\\\\slash'], $GLOBALS['globalObjectWithDoubleBackSlashString']); |
|
68 | - } |
|
65 | + public function testGlobalObjectWithDoubleBackSlashString() |
|
66 | + { |
|
67 | + $this->assertEquals((object) ['foo'=> 'back\\\\slash'], $GLOBALS['globalObjectWithDoubleBackSlashString']); |
|
68 | + } |
|
69 | 69 | } |
@@ -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 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | */ |
9 | 9 | public function testSomething() |
10 | 10 | { |
11 | - include __DIR__ . '/constant.inc'; |
|
11 | + include __DIR__.'/constant.inc'; |
|
12 | 12 | $this->assertTrue(true); |
13 | 13 | } |
14 | 14 |
@@ -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 | } |