@@ -3,11 +3,11 @@ |
||
3 | 3 | |
4 | 4 | class Issue581Test extends TestCase |
5 | 5 | { |
6 | - public function testExportingObjectsDoesNotBreakWindowsLineFeeds() |
|
7 | - { |
|
8 | - $this->assertEquals( |
|
9 | - (object) [1, 2, "Test\r\n", 4, 5, 6, 7, 8], |
|
10 | - (object) [1, 2, "Test\r\n", 4, 1, 6, 7, 8] |
|
11 | - ); |
|
12 | - } |
|
6 | + public function testExportingObjectsDoesNotBreakWindowsLineFeeds() |
|
7 | + { |
|
8 | + $this->assertEquals( |
|
9 | + (object) [1, 2, "Test\r\n", 4, 5, 6, 7, 8], |
|
10 | + (object) [1, 2, "Test\r\n", 4, 1, 6, 7, 8] |
|
11 | + ); |
|
12 | + } |
|
13 | 13 | } |
@@ -3,11 +3,11 @@ |
||
3 | 3 | |
4 | 4 | class Issue1468Test extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @todo Implement this test |
|
8 | - */ |
|
9 | - public function testFailure() |
|
10 | - { |
|
11 | - $this->markTestIncomplete(); |
|
12 | - } |
|
6 | + /** |
|
7 | + * @todo Implement this test |
|
8 | + */ |
|
9 | + public function testFailure() |
|
10 | + { |
|
11 | + $this->markTestIncomplete(); |
|
12 | + } |
|
13 | 13 | } |
@@ -4,8 +4,8 @@ |
||
4 | 4 | */ |
5 | 5 | class Issue2435Test extends PHPUnit\Framework\TestCase |
6 | 6 | { |
7 | - public function testOne() |
|
8 | - { |
|
9 | - $this->assertTrue(true); |
|
10 | - } |
|
7 | + public function testOne() |
|
8 | + { |
|
9 | + $this->assertTrue(true); |
|
10 | + } |
|
11 | 11 | } |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | if (extension_loaded('xdebug')) { |
4 | - xdebug_disable(); |
|
4 | + xdebug_disable(); |
|
5 | 5 | } |
6 | 6 | |
7 | - throw new Exception( |
|
8 | - 'PHPUnit suppresses exceptions thrown outside of test case function' |
|
9 | - ); |
|
7 | + throw new Exception( |
|
8 | + 'PHPUnit suppresses exceptions thrown outside of test case function' |
|
9 | + ); |
@@ -3,55 +3,55 @@ |
||
3 | 3 | |
4 | 4 | class Issue244Test extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @expectedException Issue244Exception |
|
8 | - * @expectedExceptionCode 123StringCode |
|
9 | - */ |
|
10 | - public function testWorks() |
|
11 | - { |
|
12 | - throw new Issue244Exception; |
|
13 | - } |
|
6 | + /** |
|
7 | + * @expectedException Issue244Exception |
|
8 | + * @expectedExceptionCode 123StringCode |
|
9 | + */ |
|
10 | + public function testWorks() |
|
11 | + { |
|
12 | + throw new Issue244Exception; |
|
13 | + } |
|
14 | 14 | |
15 | - /** |
|
16 | - * @expectedException Issue244Exception |
|
17 | - * @expectedExceptionCode OtherString |
|
18 | - */ |
|
19 | - public function testFails() |
|
20 | - { |
|
21 | - throw new Issue244Exception; |
|
22 | - } |
|
15 | + /** |
|
16 | + * @expectedException Issue244Exception |
|
17 | + * @expectedExceptionCode OtherString |
|
18 | + */ |
|
19 | + public function testFails() |
|
20 | + { |
|
21 | + throw new Issue244Exception; |
|
22 | + } |
|
23 | 23 | |
24 | - /** |
|
25 | - * @expectedException Issue244Exception |
|
26 | - * @expectedExceptionCode 123 |
|
27 | - */ |
|
28 | - public function testFailsTooIfExpectationIsANumber() |
|
29 | - { |
|
30 | - throw new Issue244Exception; |
|
31 | - } |
|
24 | + /** |
|
25 | + * @expectedException Issue244Exception |
|
26 | + * @expectedExceptionCode 123 |
|
27 | + */ |
|
28 | + public function testFailsTooIfExpectationIsANumber() |
|
29 | + { |
|
30 | + throw new Issue244Exception; |
|
31 | + } |
|
32 | 32 | |
33 | - /** |
|
34 | - * @expectedException Issue244ExceptionIntCode |
|
35 | - * @expectedExceptionCode 123String |
|
36 | - */ |
|
37 | - public function testFailsTooIfExceptionCodeIsANumber() |
|
38 | - { |
|
39 | - throw new Issue244ExceptionIntCode; |
|
40 | - } |
|
33 | + /** |
|
34 | + * @expectedException Issue244ExceptionIntCode |
|
35 | + * @expectedExceptionCode 123String |
|
36 | + */ |
|
37 | + public function testFailsTooIfExceptionCodeIsANumber() |
|
38 | + { |
|
39 | + throw new Issue244ExceptionIntCode; |
|
40 | + } |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | class Issue244Exception extends Exception |
44 | 44 | { |
45 | - public function __construct() |
|
46 | - { |
|
47 | - $this->code = '123StringCode'; |
|
48 | - } |
|
45 | + public function __construct() |
|
46 | + { |
|
47 | + $this->code = '123StringCode'; |
|
48 | + } |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | class Issue244ExceptionIntCode extends Exception |
52 | 52 | { |
53 | - public function __construct() |
|
54 | - { |
|
55 | - $this->code = 123; |
|
56 | - } |
|
53 | + public function __construct() |
|
54 | + { |
|
55 | + $this->code = 123; |
|
56 | + } |
|
57 | 57 | } |
@@ -3,20 +3,20 @@ |
||
3 | 3 | |
4 | 4 | class Issue2382Test extends TestCase |
5 | 5 | { |
6 | - /** |
|
7 | - * @dataProvider dataProvider |
|
8 | - */ |
|
9 | - public function testOne($test) |
|
10 | - { |
|
11 | - $this->assertInstanceOf(\Exception::class, $test); |
|
12 | - } |
|
6 | + /** |
|
7 | + * @dataProvider dataProvider |
|
8 | + */ |
|
9 | + public function testOne($test) |
|
10 | + { |
|
11 | + $this->assertInstanceOf(\Exception::class, $test); |
|
12 | + } |
|
13 | 13 | |
14 | - public function dataProvider() |
|
15 | - { |
|
16 | - return [ |
|
17 | - [ |
|
18 | - $this->getMockBuilder(\Exception::class)->getMock() |
|
19 | - ] |
|
20 | - ]; |
|
21 | - } |
|
14 | + public function dataProvider() |
|
15 | + { |
|
16 | + return [ |
|
17 | + [ |
|
18 | + $this->getMockBuilder(\Exception::class)->getMock() |
|
19 | + ] |
|
20 | + ]; |
|
21 | + } |
|
22 | 22 | } |
@@ -3,11 +3,11 @@ |
||
3 | 3 | |
4 | 4 | class Issue503Test extends TestCase |
5 | 5 | { |
6 | - public function testCompareDifferentLineEndings() |
|
7 | - { |
|
8 | - $this->assertSame( |
|
9 | - "foo\n", |
|
10 | - "foo\r\n" |
|
11 | - ); |
|
12 | - } |
|
6 | + public function testCompareDifferentLineEndings() |
|
7 | + { |
|
8 | + $this->assertSame( |
|
9 | + "foo\n", |
|
10 | + "foo\r\n" |
|
11 | + ); |
|
12 | + } |
|
13 | 13 | } |
@@ -3,21 +3,21 @@ |
||
3 | 3 | |
4 | 4 | class Issue1472Test extends TestCase |
5 | 5 | { |
6 | - public function testAssertEqualXMLStructure() |
|
7 | - { |
|
8 | - $doc = new DOMDocument; |
|
9 | - $doc->loadXML('<root><label>text content</label></root>'); |
|
6 | + public function testAssertEqualXMLStructure() |
|
7 | + { |
|
8 | + $doc = new DOMDocument; |
|
9 | + $doc->loadXML('<root><label>text content</label></root>'); |
|
10 | 10 | |
11 | - $xpath = new DOMXPath($doc); |
|
11 | + $xpath = new DOMXPath($doc); |
|
12 | 12 | |
13 | - $labelElement = $doc->getElementsByTagName('label')->item(0); |
|
13 | + $labelElement = $doc->getElementsByTagName('label')->item(0); |
|
14 | 14 | |
15 | - $this->assertEquals(1, $xpath->evaluate('count(//label[text() = "text content"])')); |
|
15 | + $this->assertEquals(1, $xpath->evaluate('count(//label[text() = "text content"])')); |
|
16 | 16 | |
17 | - $expectedElmt = $doc->createElement('label', 'text content'); |
|
18 | - $this->assertEqualXMLStructure($expectedElmt, $labelElement); |
|
17 | + $expectedElmt = $doc->createElement('label', 'text content'); |
|
18 | + $this->assertEqualXMLStructure($expectedElmt, $labelElement); |
|
19 | 19 | |
20 | - // the following assertion fails, even though it passed before - which is due to the assertEqualXMLStructure() has modified the $labelElement |
|
21 | - $this->assertEquals(1, $xpath->evaluate('count(//label[text() = "text content"])')); |
|
22 | - } |
|
20 | + // the following assertion fails, even though it passed before - which is due to the assertEqualXMLStructure() has modified the $labelElement |
|
21 | + $this->assertEquals(1, $xpath->evaluate('count(//label[text() = "text content"])')); |
|
22 | + } |
|
23 | 23 | } |
@@ -3,21 +3,21 @@ |
||
3 | 3 | |
4 | 4 | class Issue445Test extends TestCase |
5 | 5 | { |
6 | - public function testOutputWithExpectationBefore() |
|
7 | - { |
|
8 | - $this->expectOutputString('test'); |
|
9 | - print 'test'; |
|
10 | - } |
|
6 | + public function testOutputWithExpectationBefore() |
|
7 | + { |
|
8 | + $this->expectOutputString('test'); |
|
9 | + print 'test'; |
|
10 | + } |
|
11 | 11 | |
12 | - public function testOutputWithExpectationAfter() |
|
13 | - { |
|
14 | - print 'test'; |
|
15 | - $this->expectOutputString('test'); |
|
16 | - } |
|
12 | + public function testOutputWithExpectationAfter() |
|
13 | + { |
|
14 | + print 'test'; |
|
15 | + $this->expectOutputString('test'); |
|
16 | + } |
|
17 | 17 | |
18 | - public function testNotMatchingOutput() |
|
19 | - { |
|
20 | - print 'bar'; |
|
21 | - $this->expectOutputString('foo'); |
|
22 | - } |
|
18 | + public function testNotMatchingOutput() |
|
19 | + { |
|
20 | + print 'bar'; |
|
21 | + $this->expectOutputString('foo'); |
|
22 | + } |
|
23 | 23 | } |