Completed
Push — master ( 52755b...6c4366 )
by smiley
02:13
created
vendor/phpunit/phpunit/tests/Framework/TestCaseTest.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
     public function testExceptionInSetUp()
120 120
     {
121
-        $test   = new \ExceptionInSetUpTest('testSomething');
121
+        $test = new \ExceptionInSetUpTest('testSomething');
122 122
         $test->run();
123 123
 
124 124
         $this->assertTrue($test->setUp);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
     public function testExceptionInAssertPreConditions()
132 132
     {
133
-        $test   = new \ExceptionInAssertPreConditionsTest('testSomething');
133
+        $test = new \ExceptionInAssertPreConditionsTest('testSomething');
134 134
         $test->run();
135 135
 
136 136
         $this->assertTrue($test->setUp);
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 
143 143
     public function testExceptionInTest()
144 144
     {
145
-        $test   = new \ExceptionInTest('testSomething');
145
+        $test = new \ExceptionInTest('testSomething');
146 146
         $test->run();
147 147
 
148 148
         $this->assertTrue($test->setUp);
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 
155 155
     public function testExceptionInAssertPostConditions()
156 156
     {
157
-        $test   = new \ExceptionInAssertPostConditionsTest('testSomething');
157
+        $test = new \ExceptionInAssertPostConditionsTest('testSomething');
158 158
         $test->run();
159 159
 
160 160
         $this->assertTrue($test->setUp);
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
     public function testExceptionInTearDown()
168 168
     {
169
-        $test   = new \ExceptionInTearDownTest('testSomething');
169
+        $test = new \ExceptionInTearDownTest('testSomething');
170 170
         $test->run();
171 171
 
172 172
         $this->assertTrue($test->setUp);
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
 
525 525
     public function testSkipsIfRequiresNonExistingExtension()
526 526
     {
527
-        $test   = new \RequirementsTest('testTen');
527
+        $test = new \RequirementsTest('testTen');
528 528
         $test->run();
529 529
 
530 530
         $this->assertEquals(
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
 
536 536
     public function testSkipsIfRequiresExtensionWithAMinimumVersion()
537 537
     {
538
-        $test   = new \RequirementsTest('testSpecificExtensionVersion');
538
+        $test = new \RequirementsTest('testSpecificExtensionVersion');
539 539
         $test->run();
540 540
 
541 541
         $this->assertEquals(
@@ -546,17 +546,17 @@  discard block
 block discarded – undo
546 546
 
547 547
     public function testSkipsProvidesMessagesForAllSkippingReasons()
548 548
     {
549
-        $test   = new \RequirementsTest('testAllPossibleRequirements');
549
+        $test = new \RequirementsTest('testAllPossibleRequirements');
550 550
         $test->run();
551 551
 
552 552
         $this->assertEquals(
553
-            'PHP >= 99-dev is required.' . PHP_EOL .
554
-            'PHPUnit >= 9-dev is required.' . PHP_EOL .
555
-            'Operating system matching /DOESNOTEXIST/i is required.' . PHP_EOL .
556
-            'Function testFuncOne is required.' . PHP_EOL .
557
-            'Function testFuncTwo is required.' . PHP_EOL .
558
-            'Extension testExtOne is required.' . PHP_EOL .
559
-            'Extension testExtTwo is required.' . PHP_EOL .
553
+            'PHP >= 99-dev is required.'.PHP_EOL.
554
+            'PHPUnit >= 9-dev is required.'.PHP_EOL.
555
+            'Operating system matching /DOESNOTEXIST/i is required.'.PHP_EOL.
556
+            'Function testFuncOne is required.'.PHP_EOL.
557
+            'Function testFuncTwo is required.'.PHP_EOL.
558
+            'Extension testExtOne is required.'.PHP_EOL.
559
+            'Extension testExtTwo is required.'.PHP_EOL.
560 560
             'Extension testExtThree >= 2.0 is required.',
561 561
             $test->getStatusMessage()
562 562
         );
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/tests/Framework/Constraint/JsonMatchesTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $jsonValue  = \json_encode(['Mascott' => 'Tux']);
50 50
         $constraint = new JsonMatches($jsonValue);
51 51
 
52
-        $this->assertEquals('matches JSON string "' . $jsonValue . '"', $constraint->toString());
52
+        $this->assertEquals('matches JSON string "'.$jsonValue.'"', $constraint->toString());
53 53
     }
54 54
 
55 55
     public static function evaluateDataprovider()
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/tests/Framework/AssertTest.php 1 patch
Spacing   +73 added lines, -73 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
     protected function setUp()
23 23
     {
24
-        $this->filesDirectory = \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR;
24
+        $this->filesDirectory = \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR;
25 25
     }
26 26
 
27 27
     public function testFail()
@@ -506,7 +506,7 @@  discard block
 block discarded – undo
506 506
         $object = new \SampleClass(4, 8, 15);
507 507
         // cannot use $filesDirectory, because neither setUp() nor
508 508
         // setUpBeforeClass() are executed before the data providers
509
-        $file     = \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'foo.xml';
509
+        $file     = \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'foo.xml';
510 510
         $resource = \fopen($file, 'r');
511 511
 
512 512
         return [
@@ -557,14 +557,14 @@  discard block
 block discarded – undo
557 557
 
558 558
         // cannot use $filesDirectory, because neither setUp() nor
559 559
         // setUpBeforeClass() are executed before the data providers
560
-        $file = \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'foo.xml';
560
+        $file = \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'foo.xml';
561 561
 
562 562
         return [
563 563
             // strings
564 564
             ['a', 'b'],
565 565
             ['a', 'A'],
566 566
             // https://github.com/sebastianbergmann/phpunit/issues/1023
567
-            ['9E6666666','9E7777777'],
567
+            ['9E6666666', '9E7777777'],
568 568
             // integers
569 569
             [1, 2],
570 570
             [2, 1],
@@ -885,60 +885,60 @@  discard block
 block discarded – undo
885 885
     public function testAssertXmlFileEqualsXmlFile()
886 886
     {
887 887
         $this->assertXmlFileEqualsXmlFile(
888
-            $this->filesDirectory . 'foo.xml',
889
-            $this->filesDirectory . 'foo.xml'
888
+            $this->filesDirectory.'foo.xml',
889
+            $this->filesDirectory.'foo.xml'
890 890
         );
891 891
 
892 892
         $this->expectException(AssertionFailedError::class);
893 893
 
894 894
         $this->assertXmlFileEqualsXmlFile(
895
-            $this->filesDirectory . 'foo.xml',
896
-            $this->filesDirectory . 'bar.xml'
895
+            $this->filesDirectory.'foo.xml',
896
+            $this->filesDirectory.'bar.xml'
897 897
         );
898 898
     }
899 899
 
900 900
     public function testAssertXmlFileNotEqualsXmlFile()
901 901
     {
902 902
         $this->assertXmlFileNotEqualsXmlFile(
903
-            $this->filesDirectory . 'foo.xml',
904
-            $this->filesDirectory . 'bar.xml'
903
+            $this->filesDirectory.'foo.xml',
904
+            $this->filesDirectory.'bar.xml'
905 905
         );
906 906
 
907 907
         $this->expectException(AssertionFailedError::class);
908 908
 
909 909
         $this->assertXmlFileNotEqualsXmlFile(
910
-            $this->filesDirectory . 'foo.xml',
911
-            $this->filesDirectory . 'foo.xml'
910
+            $this->filesDirectory.'foo.xml',
911
+            $this->filesDirectory.'foo.xml'
912 912
         );
913 913
     }
914 914
 
915 915
     public function testAssertXmlStringEqualsXmlFile()
916 916
     {
917 917
         $this->assertXmlStringEqualsXmlFile(
918
-            $this->filesDirectory . 'foo.xml',
919
-            \file_get_contents($this->filesDirectory . 'foo.xml')
918
+            $this->filesDirectory.'foo.xml',
919
+            \file_get_contents($this->filesDirectory.'foo.xml')
920 920
         );
921 921
 
922 922
         $this->expectException(AssertionFailedError::class);
923 923
 
924 924
         $this->assertXmlStringEqualsXmlFile(
925
-            $this->filesDirectory . 'foo.xml',
926
-            \file_get_contents($this->filesDirectory . 'bar.xml')
925
+            $this->filesDirectory.'foo.xml',
926
+            \file_get_contents($this->filesDirectory.'bar.xml')
927 927
         );
928 928
     }
929 929
 
930 930
     public function testXmlStringNotEqualsXmlFile()
931 931
     {
932 932
         $this->assertXmlStringNotEqualsXmlFile(
933
-            $this->filesDirectory . 'foo.xml',
934
-            \file_get_contents($this->filesDirectory . 'bar.xml')
933
+            $this->filesDirectory.'foo.xml',
934
+            \file_get_contents($this->filesDirectory.'bar.xml')
935 935
         );
936 936
 
937 937
         $this->expectException(AssertionFailedError::class);
938 938
 
939 939
         $this->assertXmlStringNotEqualsXmlFile(
940
-            $this->filesDirectory . 'foo.xml',
941
-            \file_get_contents($this->filesDirectory . 'foo.xml')
940
+            $this->filesDirectory.'foo.xml',
941
+            \file_get_contents($this->filesDirectory.'foo.xml')
942 942
         );
943 943
     }
944 944
 
@@ -995,10 +995,10 @@  discard block
 block discarded – undo
995 995
     public function testXMLStructureIsSame()
996 996
     {
997 997
         $expected = new \DOMDocument;
998
-        $expected->load($this->filesDirectory . 'structureExpected.xml');
998
+        $expected->load($this->filesDirectory.'structureExpected.xml');
999 999
 
1000 1000
         $actual = new \DOMDocument;
1001
-        $actual->load($this->filesDirectory . 'structureExpected.xml');
1001
+        $actual->load($this->filesDirectory.'structureExpected.xml');
1002 1002
 
1003 1003
         $this->assertEqualXMLStructure(
1004 1004
             $expected->firstChild,
@@ -1010,10 +1010,10 @@  discard block
 block discarded – undo
1010 1010
     public function testXMLStructureWrongNumberOfAttributes()
1011 1011
     {
1012 1012
         $expected = new \DOMDocument;
1013
-        $expected->load($this->filesDirectory . 'structureExpected.xml');
1013
+        $expected->load($this->filesDirectory.'structureExpected.xml');
1014 1014
 
1015 1015
         $actual = new \DOMDocument;
1016
-        $actual->load($this->filesDirectory . 'structureWrongNumberOfAttributes.xml');
1016
+        $actual->load($this->filesDirectory.'structureWrongNumberOfAttributes.xml');
1017 1017
 
1018 1018
         $this->expectException(ExpectationFailedException::class);
1019 1019
 
@@ -1027,10 +1027,10 @@  discard block
 block discarded – undo
1027 1027
     public function testXMLStructureWrongNumberOfNodes()
1028 1028
     {
1029 1029
         $expected = new \DOMDocument;
1030
-        $expected->load($this->filesDirectory . 'structureExpected.xml');
1030
+        $expected->load($this->filesDirectory.'structureExpected.xml');
1031 1031
 
1032 1032
         $actual = new \DOMDocument;
1033
-        $actual->load($this->filesDirectory . 'structureWrongNumberOfNodes.xml');
1033
+        $actual->load($this->filesDirectory.'structureWrongNumberOfNodes.xml');
1034 1034
 
1035 1035
         $this->expectException(ExpectationFailedException::class);
1036 1036
 
@@ -1044,10 +1044,10 @@  discard block
 block discarded – undo
1044 1044
     public function testXMLStructureIsSameButDataIsNot()
1045 1045
     {
1046 1046
         $expected = new \DOMDocument;
1047
-        $expected->load($this->filesDirectory . 'structureExpected.xml');
1047
+        $expected->load($this->filesDirectory.'structureExpected.xml');
1048 1048
 
1049 1049
         $actual = new \DOMDocument;
1050
-        $actual->load($this->filesDirectory . 'structureIsSameButDataIsNot.xml');
1050
+        $actual->load($this->filesDirectory.'structureIsSameButDataIsNot.xml');
1051 1051
 
1052 1052
         $this->assertEqualXMLStructure(
1053 1053
             $expected->firstChild,
@@ -1059,10 +1059,10 @@  discard block
 block discarded – undo
1059 1059
     public function testXMLStructureAttributesAreSameButValuesAreNot()
1060 1060
     {
1061 1061
         $expected = new \DOMDocument;
1062
-        $expected->load($this->filesDirectory . 'structureExpected.xml');
1062
+        $expected->load($this->filesDirectory.'structureExpected.xml');
1063 1063
 
1064 1064
         $actual = new \DOMDocument;
1065
-        $actual->load($this->filesDirectory . 'structureAttributesAreSameButValuesAreNot.xml');
1065
+        $actual->load($this->filesDirectory.'structureAttributesAreSameButValuesAreNot.xml');
1066 1066
 
1067 1067
         $this->assertEqualXMLStructure(
1068 1068
             $expected->firstChild,
@@ -1074,10 +1074,10 @@  discard block
 block discarded – undo
1074 1074
     public function testXMLStructureIgnoreTextNodes()
1075 1075
     {
1076 1076
         $expected = new \DOMDocument;
1077
-        $expected->load($this->filesDirectory . 'structureExpected.xml');
1077
+        $expected->load($this->filesDirectory.'structureExpected.xml');
1078 1078
 
1079 1079
         $actual = new \DOMDocument;
1080
-        $actual->load($this->filesDirectory . 'structureIgnoreTextNodes.xml');
1080
+        $actual->load($this->filesDirectory.'structureIgnoreTextNodes.xml');
1081 1081
 
1082 1082
         $this->assertEqualXMLStructure(
1083 1083
             $expected->firstChild,
@@ -1113,7 +1113,7 @@  discard block
 block discarded – undo
1113 1113
 
1114 1114
         $this->expectException(AssertionFailedError::class);
1115 1115
 
1116
-        $this->assertIsReadable(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting');
1116
+        $this->assertIsReadable(__DIR__.DIRECTORY_SEPARATOR.'NotExisting');
1117 1117
     }
1118 1118
 
1119 1119
     public function testAssertNotIsReadableThrowsException()
@@ -1143,7 +1143,7 @@  discard block
 block discarded – undo
1143 1143
 
1144 1144
         $this->expectException(AssertionFailedError::class);
1145 1145
 
1146
-        $this->assertIsWritable(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting');
1146
+        $this->assertIsWritable(__DIR__.DIRECTORY_SEPARATOR.'NotExisting');
1147 1147
     }
1148 1148
 
1149 1149
     public function testAssertNotIsWritableThrowsException()
@@ -1173,7 +1173,7 @@  discard block
 block discarded – undo
1173 1173
 
1174 1174
         $this->expectException(AssertionFailedError::class);
1175 1175
 
1176
-        $this->assertDirectoryExists(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting');
1176
+        $this->assertDirectoryExists(__DIR__.DIRECTORY_SEPARATOR.'NotExisting');
1177 1177
     }
1178 1178
 
1179 1179
     public function testAssertDirectoryNotExistsThrowsException()
@@ -1185,7 +1185,7 @@  discard block
 block discarded – undo
1185 1185
 
1186 1186
     public function testAssertDirectoryNotExists()
1187 1187
     {
1188
-        $this->assertDirectoryNotExists(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting');
1188
+        $this->assertDirectoryNotExists(__DIR__.DIRECTORY_SEPARATOR.'NotExisting');
1189 1189
 
1190 1190
         $this->expectException(AssertionFailedError::class);
1191 1191
 
@@ -1205,7 +1205,7 @@  discard block
 block discarded – undo
1205 1205
 
1206 1206
         $this->expectException(AssertionFailedError::class);
1207 1207
 
1208
-        $this->assertDirectoryIsReadable(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting');
1208
+        $this->assertDirectoryIsReadable(__DIR__.DIRECTORY_SEPARATOR.'NotExisting');
1209 1209
     }
1210 1210
 
1211 1211
     public function testAssertDirectoryNotIsReadableThrowsException()
@@ -1228,7 +1228,7 @@  discard block
 block discarded – undo
1228 1228
 
1229 1229
         $this->expectException(AssertionFailedError::class);
1230 1230
 
1231
-        $this->assertDirectoryIsWritable(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting');
1231
+        $this->assertDirectoryIsWritable(__DIR__.DIRECTORY_SEPARATOR.'NotExisting');
1232 1232
     }
1233 1233
 
1234 1234
     public function testAssertDirectoryNotIsWritableThrowsException()
@@ -1251,7 +1251,7 @@  discard block
 block discarded – undo
1251 1251
 
1252 1252
         $this->expectException(AssertionFailedError::class);
1253 1253
 
1254
-        $this->assertFileExists(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting');
1254
+        $this->assertFileExists(__DIR__.DIRECTORY_SEPARATOR.'NotExisting');
1255 1255
     }
1256 1256
 
1257 1257
     public function testAssertFileNotExistsThrowsException()
@@ -1263,7 +1263,7 @@  discard block
 block discarded – undo
1263 1263
 
1264 1264
     public function testAssertFileNotExists()
1265 1265
     {
1266
-        $this->assertFileNotExists(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting');
1266
+        $this->assertFileNotExists(__DIR__.DIRECTORY_SEPARATOR.'NotExisting');
1267 1267
 
1268 1268
         $this->expectException(AssertionFailedError::class);
1269 1269
 
@@ -1283,7 +1283,7 @@  discard block
 block discarded – undo
1283 1283
 
1284 1284
         $this->expectException(AssertionFailedError::class);
1285 1285
 
1286
-        $this->assertFileIsReadable(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting');
1286
+        $this->assertFileIsReadable(__DIR__.DIRECTORY_SEPARATOR.'NotExisting');
1287 1287
     }
1288 1288
 
1289 1289
     public function testAssertFileNotIsReadableThrowsException()
@@ -1306,7 +1306,7 @@  discard block
 block discarded – undo
1306 1306
 
1307 1307
         $this->expectException(AssertionFailedError::class);
1308 1308
 
1309
-        $this->assertFileIsWritable(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting');
1309
+        $this->assertFileIsWritable(__DIR__.DIRECTORY_SEPARATOR.'NotExisting');
1310 1310
     }
1311 1311
 
1312 1312
     public function testAssertFileNotIsWritableThrowsException()
@@ -2470,7 +2470,7 @@  discard block
 block discarded – undo
2470 2470
     {
2471 2471
         $this->assertThat(
2472 2472
             null,
2473
-            $this->callback(function ($other) {
2473
+            $this->callback(function($other) {
2474 2474
                 return true;
2475 2475
             })
2476 2476
         );
@@ -2484,60 +2484,60 @@  discard block
 block discarded – undo
2484 2484
     public function testAssertFileEquals()
2485 2485
     {
2486 2486
         $this->assertFileEquals(
2487
-            $this->filesDirectory . 'foo.xml',
2488
-            $this->filesDirectory . 'foo.xml'
2487
+            $this->filesDirectory.'foo.xml',
2488
+            $this->filesDirectory.'foo.xml'
2489 2489
         );
2490 2490
 
2491 2491
         $this->expectException(AssertionFailedError::class);
2492 2492
 
2493 2493
         $this->assertFileEquals(
2494
-            $this->filesDirectory . 'foo.xml',
2495
-            $this->filesDirectory . 'bar.xml'
2494
+            $this->filesDirectory.'foo.xml',
2495
+            $this->filesDirectory.'bar.xml'
2496 2496
         );
2497 2497
     }
2498 2498
 
2499 2499
     public function testAssertFileNotEquals()
2500 2500
     {
2501 2501
         $this->assertFileNotEquals(
2502
-            $this->filesDirectory . 'foo.xml',
2503
-            $this->filesDirectory . 'bar.xml'
2502
+            $this->filesDirectory.'foo.xml',
2503
+            $this->filesDirectory.'bar.xml'
2504 2504
         );
2505 2505
 
2506 2506
         $this->expectException(AssertionFailedError::class);
2507 2507
 
2508 2508
         $this->assertFileNotEquals(
2509
-            $this->filesDirectory . 'foo.xml',
2510
-            $this->filesDirectory . 'foo.xml'
2509
+            $this->filesDirectory.'foo.xml',
2510
+            $this->filesDirectory.'foo.xml'
2511 2511
         );
2512 2512
     }
2513 2513
 
2514 2514
     public function testAssertStringEqualsFile()
2515 2515
     {
2516 2516
         $this->assertStringEqualsFile(
2517
-            $this->filesDirectory . 'foo.xml',
2518
-            \file_get_contents($this->filesDirectory . 'foo.xml')
2517
+            $this->filesDirectory.'foo.xml',
2518
+            \file_get_contents($this->filesDirectory.'foo.xml')
2519 2519
         );
2520 2520
 
2521 2521
         $this->expectException(AssertionFailedError::class);
2522 2522
 
2523 2523
         $this->assertStringEqualsFile(
2524
-            $this->filesDirectory . 'foo.xml',
2525
-            \file_get_contents($this->filesDirectory . 'bar.xml')
2524
+            $this->filesDirectory.'foo.xml',
2525
+            \file_get_contents($this->filesDirectory.'bar.xml')
2526 2526
         );
2527 2527
     }
2528 2528
 
2529 2529
     public function testAssertStringNotEqualsFile()
2530 2530
     {
2531 2531
         $this->assertStringNotEqualsFile(
2532
-            $this->filesDirectory . 'foo.xml',
2533
-            \file_get_contents($this->filesDirectory . 'bar.xml')
2532
+            $this->filesDirectory.'foo.xml',
2533
+            \file_get_contents($this->filesDirectory.'bar.xml')
2534 2534
         );
2535 2535
 
2536 2536
         $this->expectException(AssertionFailedError::class);
2537 2537
 
2538 2538
         $this->assertStringNotEqualsFile(
2539
-            $this->filesDirectory . 'foo.xml',
2540
-            \file_get_contents($this->filesDirectory . 'foo.xml')
2539
+            $this->filesDirectory.'foo.xml',
2540
+            \file_get_contents($this->filesDirectory.'foo.xml')
2541 2541
         );
2542 2542
     }
2543 2543
 
@@ -2947,7 +2947,7 @@  discard block
 block discarded – undo
2947 2947
 
2948 2948
     public function testAssertJsonStringEqualsJsonFile()
2949 2949
     {
2950
-        $file    = __DIR__ . '/../_files/JsonData/simpleObject.json';
2950
+        $file    = __DIR__.'/../_files/JsonData/simpleObject.json';
2951 2951
         $actual  = \json_encode(['Mascott' => 'Tux']);
2952 2952
         $message = '';
2953 2953
 
@@ -2956,7 +2956,7 @@  discard block
 block discarded – undo
2956 2956
 
2957 2957
     public function testAssertJsonStringEqualsJsonFileExpectingExpectationFailedException()
2958 2958
     {
2959
-        $file    = __DIR__ . '/../_files/JsonData/simpleObject.json';
2959
+        $file    = __DIR__.'/../_files/JsonData/simpleObject.json';
2960 2960
         $actual  = \json_encode(['Mascott' => 'Beastie']);
2961 2961
         $message = '';
2962 2962
 
@@ -2976,7 +2976,7 @@  discard block
 block discarded – undo
2976 2976
 
2977 2977
     public function testAssertJsonStringEqualsJsonFileExpectingException()
2978 2978
     {
2979
-        $file = __DIR__ . '/../_files/JsonData/simpleObject.json';
2979
+        $file = __DIR__.'/../_files/JsonData/simpleObject.json';
2980 2980
 
2981 2981
         try {
2982 2982
             $this->assertJsonStringEqualsJsonFile($file, null);
@@ -2989,7 +2989,7 @@  discard block
 block discarded – undo
2989 2989
 
2990 2990
     public function testAssertJsonStringNotEqualsJsonFile()
2991 2991
     {
2992
-        $file    = __DIR__ . '/../_files/JsonData/simpleObject.json';
2992
+        $file    = __DIR__.'/../_files/JsonData/simpleObject.json';
2993 2993
         $actual  = \json_encode(['Mascott' => 'Beastie']);
2994 2994
         $message = '';
2995 2995
 
@@ -2998,7 +2998,7 @@  discard block
 block discarded – undo
2998 2998
 
2999 2999
     public function testAssertJsonStringNotEqualsJsonFileExpectingException()
3000 3000
     {
3001
-        $file = __DIR__ . '/../_files/JsonData/simpleObject.json';
3001
+        $file = __DIR__.'/../_files/JsonData/simpleObject.json';
3002 3002
 
3003 3003
         try {
3004 3004
             $this->assertJsonStringNotEqualsJsonFile($file, null);
@@ -3011,8 +3011,8 @@  discard block
 block discarded – undo
3011 3011
 
3012 3012
     public function testAssertJsonFileNotEqualsJsonFile()
3013 3013
     {
3014
-        $fileExpected = __DIR__ . '/../_files/JsonData/simpleObject.json';
3015
-        $fileActual   = __DIR__ . '/../_files/JsonData/arrayObject.json';
3014
+        $fileExpected = __DIR__.'/../_files/JsonData/simpleObject.json';
3015
+        $fileActual   = __DIR__.'/../_files/JsonData/arrayObject.json';
3016 3016
         $message      = '';
3017 3017
 
3018 3018
         $this->assertJsonFileNotEqualsJsonFile($fileExpected, $fileActual, $message);
@@ -3020,7 +3020,7 @@  discard block
 block discarded – undo
3020 3020
 
3021 3021
     public function testAssertJsonFileEqualsJsonFile()
3022 3022
     {
3023
-        $file    = __DIR__ . '/../_files/JsonData/simpleObject.json';
3023
+        $file    = __DIR__.'/../_files/JsonData/simpleObject.json';
3024 3024
         $message = '';
3025 3025
 
3026 3026
         $this->assertJsonFileEqualsJsonFile($file, $file, $message);
@@ -3142,16 +3142,16 @@  discard block
 block discarded – undo
3142 3142
     {
3143 3143
         $this->expectException(Exception::class);
3144 3144
 
3145
-        $this->assertStringMatchesFormatFile($this->filesDirectory . 'expectedFileFormat.txt', null);
3145
+        $this->assertStringMatchesFormatFile($this->filesDirectory.'expectedFileFormat.txt', null);
3146 3146
     }
3147 3147
 
3148 3148
     public function testAssertStringMatchesFormatFile()
3149 3149
     {
3150
-        $this->assertStringMatchesFormatFile($this->filesDirectory . 'expectedFileFormat.txt', "FOO\n");
3150
+        $this->assertStringMatchesFormatFile($this->filesDirectory.'expectedFileFormat.txt', "FOO\n");
3151 3151
 
3152 3152
         $this->expectException(AssertionFailedError::class);
3153 3153
 
3154
-        $this->assertStringMatchesFormatFile($this->filesDirectory . 'expectedFileFormat.txt', "BAR\n");
3154
+        $this->assertStringMatchesFormatFile($this->filesDirectory.'expectedFileFormat.txt', "BAR\n");
3155 3155
     }
3156 3156
 
3157 3157
     public function testAssertStringNotMatchesFormatFileThrowsExceptionForInvalidArgument()
@@ -3165,16 +3165,16 @@  discard block
 block discarded – undo
3165 3165
     {
3166 3166
         $this->expectException(Exception::class);
3167 3167
 
3168
-        $this->assertStringNotMatchesFormatFile($this->filesDirectory . 'expectedFileFormat.txt', null);
3168
+        $this->assertStringNotMatchesFormatFile($this->filesDirectory.'expectedFileFormat.txt', null);
3169 3169
     }
3170 3170
 
3171 3171
     public function testAssertStringNotMatchesFormatFile()
3172 3172
     {
3173
-        $this->assertStringNotMatchesFormatFile($this->filesDirectory . 'expectedFileFormat.txt', "BAR\n");
3173
+        $this->assertStringNotMatchesFormatFile($this->filesDirectory.'expectedFileFormat.txt', "BAR\n");
3174 3174
 
3175 3175
         $this->expectException(AssertionFailedError::class);
3176 3176
 
3177
-        $this->assertStringNotMatchesFormatFile($this->filesDirectory . 'expectedFileFormat.txt', "FOO\n");
3177
+        $this->assertStringNotMatchesFormatFile($this->filesDirectory.'expectedFileFormat.txt', "FOO\n");
3178 3178
     }
3179 3179
 
3180 3180
     /**
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/tests/Framework/TestFailureTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
         $exception = new Exception('message');
19 19
         $failure   = new TestFailure($test, $exception);
20 20
 
21
-        $this->assertEquals(__METHOD__ . ': message', $failure->toString());
21
+        $this->assertEquals(__METHOD__.': message', $failure->toString());
22 22
     }
23 23
 
24 24
     public function testToStringForError()
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $exception = new \Error('message');
28 28
         $failure   = new TestFailure($test, $exception);
29 29
 
30
-        $this->assertEquals(__METHOD__ . ': message', $failure->toString());
30
+        $this->assertEquals(__METHOD__.': message', $failure->toString());
31 31
     }
32 32
 
33 33
     public function testgetExceptionAsString()
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/tests/Runner/PhptTestCaseTest.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     protected function setUp()
71 71
     {
72 72
         $this->dirname  = \sys_get_temp_dir();
73
-        $this->filename = $this->dirname . '/phpunit.phpt';
73
+        $this->filename = $this->dirname.'/phpunit.phpt';
74 74
         \touch($this->filename);
75 75
 
76 76
         $this->phpProcess = $this->getMockForAbstractClass(AbstractPhpProcess::class, [], '', false);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     {
119 119
         $this->setPhpContent($this->ensureCorrectEndOfLine(self::EXPECT_CONTENT));
120 120
 
121
-        $fileSection = '<?php echo "Hello PHPUnit!"; ?>' . PHP_EOL;
121
+        $fileSection = '<?php echo "Hello PHPUnit!"; ?>'.PHP_EOL;
122 122
 
123 123
         $this->phpProcess
124 124
              ->expects($this->once())
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 EOF
143 143
         ));
144 144
 
145
-        $renderedCode = "<?php echo '" . $this->dirname . "' . '" . $this->filename . "'; ?>" . PHP_EOL;
145
+        $renderedCode = "<?php echo '".$this->dirname."' . '".$this->filename."'; ?>".PHP_EOL;
146 146
 
147 147
         $this->phpProcess
148 148
              ->expects($this->once())
@@ -155,13 +155,13 @@  discard block
 block discarded – undo
155 155
 
156 156
     public function testRenderSkipifSection()
157 157
     {
158
-        $phptContent = self::EXPECT_CONTENT . PHP_EOL;
159
-        $phptContent .= '--SKIPIF--' . PHP_EOL;
160
-        $phptContent .= "<?php echo 'skip: ' . __FILE__; ?>" . PHP_EOL;
158
+        $phptContent = self::EXPECT_CONTENT.PHP_EOL;
159
+        $phptContent .= '--SKIPIF--'.PHP_EOL;
160
+        $phptContent .= "<?php echo 'skip: ' . __FILE__; ?>".PHP_EOL;
161 161
 
162 162
         $this->setPhpContent($phptContent);
163 163
 
164
-        $renderedCode = "<?php echo 'skip: ' . '" . $this->filename . "'; ?>" . PHP_EOL;
164
+        $renderedCode = "<?php echo 'skip: ' . '".$this->filename."'; ?>".PHP_EOL;
165 165
 
166 166
         $this->phpProcess
167 167
              ->expects($this->at(0))
@@ -174,10 +174,10 @@  discard block
 block discarded – undo
174 174
 
175 175
     public function testShouldRunSkipifSectionWhenExists()
176 176
     {
177
-        $skipifSection = '<?php /** Nothing **/ ?>' . PHP_EOL;
177
+        $skipifSection = '<?php /** Nothing **/ ?>'.PHP_EOL;
178 178
 
179
-        $phptContent = self::EXPECT_CONTENT . PHP_EOL;
180
-        $phptContent .= '--SKIPIF--' . PHP_EOL;
179
+        $phptContent = self::EXPECT_CONTENT.PHP_EOL;
180
+        $phptContent .= '--SKIPIF--'.PHP_EOL;
181 181
         $phptContent .= $skipifSection;
182 182
 
183 183
         $this->setPhpContent($phptContent);
@@ -193,10 +193,10 @@  discard block
 block discarded – undo
193 193
 
194 194
     public function testShouldNotRunTestSectionIfSkipifSectionReturnsOutputWithSkipWord()
195 195
     {
196
-        $skipifSection = '<?php echo "skip: Reason"; ?>' . PHP_EOL;
196
+        $skipifSection = '<?php echo "skip: Reason"; ?>'.PHP_EOL;
197 197
 
198
-        $phptContent = self::EXPECT_CONTENT . PHP_EOL;
199
-        $phptContent .= '--SKIPIF--' . PHP_EOL;
198
+        $phptContent = self::EXPECT_CONTENT.PHP_EOL;
199
+        $phptContent .= '--SKIPIF--'.PHP_EOL;
200 200
         $phptContent .= $skipifSection;
201 201
 
202 202
         $this->setPhpContent($phptContent);
@@ -212,10 +212,10 @@  discard block
 block discarded – undo
212 212
 
213 213
     public function testShouldRunCleanSectionWhenDefined()
214 214
     {
215
-        $cleanSection = '<?php unlink("/tmp/something"); ?>' . PHP_EOL;
215
+        $cleanSection = '<?php unlink("/tmp/something"); ?>'.PHP_EOL;
216 216
 
217
-        $phptContent = self::EXPECT_CONTENT . PHP_EOL;
218
-        $phptContent .= '--CLEAN--' . PHP_EOL;
217
+        $phptContent = self::EXPECT_CONTENT.PHP_EOL;
218
+        $phptContent .= '--CLEAN--'.PHP_EOL;
219 219
         $phptContent .= $cleanSection;
220 220
 
221 221
         $this->setPhpContent($phptContent);
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/tests/_files/DataProviderDebugTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
         $obj2      = new \stdClass();
17 17
         $obj2->foo = 'bar';
18 18
 
19
-        $obj3 = (object) [1,2,"Test\r\n",4,5,6,7,8];
19
+        $obj3 = (object) [1, 2, "Test\r\n", 4, 5, 6, 7, 8];
20 20
 
21 21
         $obj = new \stdClass();
22 22
         //@codingStandardsIgnoreStart
@@ -39,12 +39,12 @@  discard block
 block discarded – undo
39 39
         return [
40 40
             [null, true, 1, 1.0],
41 41
             [1.2, fopen('php://memory', 'r'), '1'],
42
-            [[[1,2,3], [3,4,5]]],
42
+            [[[1, 2, 3], [3, 4, 5]]],
43 43
             // \n\r and \r is converted to \n
44 44
             ["this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext"],
45 45
             [new \stdClass(), $obj, [], $storage, $obj3],
46
-            [chr(0) . chr(1) . chr(2) . chr(3) . chr(4) . chr(5), implode('', array_map('chr', range(0x0e, 0x1f)))],
47
-            [chr(0x00) . chr(0x09)]
46
+            [chr(0).chr(1).chr(2).chr(3).chr(4).chr(5), implode('', array_map('chr', range(0x0e, 0x1f)))],
47
+            [chr(0x00).chr(0x09)]
48 48
         ];
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
phpunit/phpunit/tests/_files/RequirementsClassBeforeClassHookTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,6 +8,6 @@
 block discarded – undo
8 8
 {
9 9
     public static function setUpBeforeClass()
10 10
     {
11
-        throw new Exception(__METHOD__ . ' should not be called because of class requirements.');
11
+        throw new Exception(__METHOD__.' should not be called because of class requirements.');
12 12
     }
13 13
 }
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/tests/_files/FailureTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,6 +72,6 @@
 block discarded – undo
72 72
     // Note that due to the implementation of this assertion it counts as 2 asserts
73 73
     public function testAssertStringMatchesFormatFile()
74 74
     {
75
-        $this->assertStringMatchesFormatFile(__DIR__ . '/expectedFileFormat.txt', '...BAR...');
75
+        $this->assertStringMatchesFormatFile(__DIR__.'/expectedFileFormat.txt', '...BAR...');
76 76
     }
77 77
 }
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/tests/_files/MyCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
11 11
 
12 12
     public function myHandler($value)
13 13
     {
14
-        echo __METHOD__ . " $value\n";
14
+        echo __METHOD__." $value\n";
15 15
     }
16 16
 }
Please login to merge, or discard this patch.