@@ -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 | } |
@@ -3,22 +3,22 @@ |
||
3 | 3 | |
4 | 4 | class Issue765Test extends TestCase |
5 | 5 | { |
6 | - public function testDependee() |
|
7 | - { |
|
8 | - $this->assertTrue(true); |
|
9 | - } |
|
6 | + public function testDependee() |
|
7 | + { |
|
8 | + $this->assertTrue(true); |
|
9 | + } |
|
10 | 10 | |
11 | - /** |
|
12 | - * @depends testDependee |
|
13 | - * @dataProvider dependentProvider |
|
14 | - */ |
|
15 | - public function testDependent($a) |
|
16 | - { |
|
17 | - $this->assertTrue(true); |
|
18 | - } |
|
11 | + /** |
|
12 | + * @depends testDependee |
|
13 | + * @dataProvider dependentProvider |
|
14 | + */ |
|
15 | + public function testDependent($a) |
|
16 | + { |
|
17 | + $this->assertTrue(true); |
|
18 | + } |
|
19 | 19 | |
20 | - public function dependentProvider() |
|
21 | - { |
|
22 | - throw new Exception; |
|
23 | - } |
|
20 | + public function dependentProvider() |
|
21 | + { |
|
22 | + throw new Exception; |
|
23 | + } |
|
24 | 24 | } |
@@ -3,48 +3,48 @@ |
||
3 | 3 | |
4 | 4 | class Issue1351Test extends TestCase |
5 | 5 | { |
6 | - protected $instance; |
|
6 | + protected $instance; |
|
7 | 7 | |
8 | - /** |
|
9 | - * @runInSeparateProcess |
|
10 | - */ |
|
11 | - public function testFailurePre() |
|
12 | - { |
|
13 | - $this->instance = new ChildProcessClass1351(); |
|
14 | - $this->assertFalse(true, 'Expected failure.'); |
|
15 | - } |
|
8 | + /** |
|
9 | + * @runInSeparateProcess |
|
10 | + */ |
|
11 | + public function testFailurePre() |
|
12 | + { |
|
13 | + $this->instance = new ChildProcessClass1351(); |
|
14 | + $this->assertFalse(true, 'Expected failure.'); |
|
15 | + } |
|
16 | 16 | |
17 | - public function testFailurePost() |
|
18 | - { |
|
19 | - $this->assertNull($this->instance); |
|
20 | - $this->assertFalse(class_exists(ChildProcessClass1351::class, false), 'ChildProcessClass1351 is not loaded.'); |
|
21 | - } |
|
17 | + public function testFailurePost() |
|
18 | + { |
|
19 | + $this->assertNull($this->instance); |
|
20 | + $this->assertFalse(class_exists(ChildProcessClass1351::class, false), 'ChildProcessClass1351 is not loaded.'); |
|
21 | + } |
|
22 | 22 | |
23 | - /** |
|
24 | - * @runInSeparateProcess |
|
25 | - */ |
|
26 | - public function testExceptionPre() |
|
27 | - { |
|
28 | - $this->instance = new ChildProcessClass1351(); |
|
29 | - try { |
|
30 | - throw new LogicException('Expected exception.'); |
|
31 | - } catch (LogicException $e) { |
|
32 | - throw new RuntimeException('Expected rethrown exception.', 0, $e); |
|
33 | - } |
|
34 | - } |
|
23 | + /** |
|
24 | + * @runInSeparateProcess |
|
25 | + */ |
|
26 | + public function testExceptionPre() |
|
27 | + { |
|
28 | + $this->instance = new ChildProcessClass1351(); |
|
29 | + try { |
|
30 | + throw new LogicException('Expected exception.'); |
|
31 | + } catch (LogicException $e) { |
|
32 | + throw new RuntimeException('Expected rethrown exception.', 0, $e); |
|
33 | + } |
|
34 | + } |
|
35 | 35 | |
36 | - public function testExceptionPost() |
|
37 | - { |
|
38 | - $this->assertNull($this->instance); |
|
39 | - $this->assertFalse(class_exists(ChildProcessClass1351::class, false), 'ChildProcessClass1351 is not loaded.'); |
|
40 | - } |
|
36 | + public function testExceptionPost() |
|
37 | + { |
|
38 | + $this->assertNull($this->instance); |
|
39 | + $this->assertFalse(class_exists(ChildProcessClass1351::class, false), 'ChildProcessClass1351 is not loaded.'); |
|
40 | + } |
|
41 | 41 | |
42 | - public function testPhpCoreLanguageException() |
|
43 | - { |
|
44 | - // User-space code cannot instantiate a PDOException with a string code, |
|
45 | - // so trigger a real one. |
|
46 | - $connection = new PDO('sqlite::memory:'); |
|
47 | - $connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
|
48 | - $connection->query("DELETE FROM php_wtf WHERE exception_code = 'STRING'"); |
|
49 | - } |
|
42 | + public function testPhpCoreLanguageException() |
|
43 | + { |
|
44 | + // User-space code cannot instantiate a PDOException with a string code, |
|
45 | + // so trigger a real one. |
|
46 | + $connection = new PDO('sqlite::memory:'); |
|
47 | + $connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
|
48 | + $connection->query("DELETE FROM php_wtf WHERE exception_code = 'STRING'"); |
|
49 | + } |
|
50 | 50 | } |
@@ -3,24 +3,24 @@ |
||
3 | 3 | |
4 | 4 | class Issue1021Test extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @dataProvider provider |
|
8 | - */ |
|
9 | - public function testSomething($data) |
|
10 | - { |
|
11 | - $this->assertTrue($data); |
|
12 | - } |
|
6 | + /** |
|
7 | + * @dataProvider provider |
|
8 | + */ |
|
9 | + public function testSomething($data) |
|
10 | + { |
|
11 | + $this->assertTrue($data); |
|
12 | + } |
|
13 | 13 | |
14 | - /** |
|
15 | - * @depends testSomething |
|
16 | - */ |
|
17 | - public function testSomethingElse() |
|
18 | - { |
|
19 | - $this->assertTrue(true); |
|
20 | - } |
|
14 | + /** |
|
15 | + * @depends testSomething |
|
16 | + */ |
|
17 | + public function testSomethingElse() |
|
18 | + { |
|
19 | + $this->assertTrue(true); |
|
20 | + } |
|
21 | 21 | |
22 | - public function provider() |
|
23 | - { |
|
24 | - return [[true]]; |
|
25 | - } |
|
22 | + public function provider() |
|
23 | + { |
|
24 | + return [[true]]; |
|
25 | + } |
|
26 | 26 | } |
@@ -3,13 +3,13 @@ |
||
3 | 3 | |
4 | 4 | class Issue523Test extends TestCase |
5 | 5 | { |
6 | - public function testAttributeEquals() |
|
7 | - { |
|
8 | - $this->assertAttributeEquals('foo', 'field', new Issue523()); |
|
9 | - } |
|
6 | + public function testAttributeEquals() |
|
7 | + { |
|
8 | + $this->assertAttributeEquals('foo', 'field', new Issue523()); |
|
9 | + } |
|
10 | 10 | } |
11 | 11 | |
12 | 12 | class Issue523 extends ArrayIterator |
13 | 13 | { |
14 | - protected $field = 'foo'; |
|
14 | + protected $field = 'foo'; |
|
15 | 15 | } |
@@ -3,20 +3,20 @@ |
||
3 | 3 | |
4 | 4 | class Issue578Test extends TestCase |
5 | 5 | { |
6 | - public function testNoticesDoublePrintStackTrace() |
|
7 | - { |
|
8 | - $this->iniSet('error_reporting', E_ALL | E_NOTICE); |
|
9 | - trigger_error('Stack Trace Test Notice', E_NOTICE); |
|
10 | - } |
|
6 | + public function testNoticesDoublePrintStackTrace() |
|
7 | + { |
|
8 | + $this->iniSet('error_reporting', E_ALL | E_NOTICE); |
|
9 | + trigger_error('Stack Trace Test Notice', E_NOTICE); |
|
10 | + } |
|
11 | 11 | |
12 | - public function testWarningsDoublePrintStackTrace() |
|
13 | - { |
|
14 | - $this->iniSet('error_reporting', E_ALL | E_NOTICE); |
|
15 | - trigger_error('Stack Trace Test Notice', E_WARNING); |
|
16 | - } |
|
12 | + public function testWarningsDoublePrintStackTrace() |
|
13 | + { |
|
14 | + $this->iniSet('error_reporting', E_ALL | E_NOTICE); |
|
15 | + trigger_error('Stack Trace Test Notice', E_WARNING); |
|
16 | + } |
|
17 | 17 | |
18 | - public function testUnexpectedExceptionsPrintsCorrectly() |
|
19 | - { |
|
20 | - throw new Exception('Double printed exception'); |
|
21 | - } |
|
18 | + public function testUnexpectedExceptionsPrintsCorrectly() |
|
19 | + { |
|
20 | + throw new Exception('Double printed exception'); |
|
21 | + } |
|
22 | 22 | } |