Test Failed
Push — master ( 4527f5...6e7815 )
by Ylva
21:41 queued 04:42
created
a/vendor/phpunit/phpunit/src/Runner/BaseTestRunner.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,17 +24,17 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * @var int
26 26
      */
27
-    public const STATUS_UNKNOWN    = -1;
27
+    public const STATUS_UNKNOWN = -1;
28 28
 
29 29
     /**
30 30
      * @var int
31 31
      */
32
-    public const STATUS_PASSED     = 0;
32
+    public const STATUS_PASSED = 0;
33 33
 
34 34
     /**
35 35
      * @var int
36 36
      */
37
-    public const STATUS_SKIPPED    = 1;
37
+    public const STATUS_SKIPPED = 1;
38 38
 
39 39
     /**
40 40
      * @var int
@@ -44,27 +44,27 @@  discard block
 block discarded – undo
44 44
     /**
45 45
      * @var int
46 46
      */
47
-    public const STATUS_FAILURE    = 3;
47
+    public const STATUS_FAILURE = 3;
48 48
 
49 49
     /**
50 50
      * @var int
51 51
      */
52
-    public const STATUS_ERROR      = 4;
52
+    public const STATUS_ERROR = 4;
53 53
 
54 54
     /**
55 55
      * @var int
56 56
      */
57
-    public const STATUS_RISKY      = 5;
57
+    public const STATUS_RISKY = 5;
58 58
 
59 59
     /**
60 60
      * @var int
61 61
      */
62
-    public const STATUS_WARNING    = 6;
62
+    public const STATUS_WARNING = 6;
63 63
 
64 64
     /**
65 65
      * @var string
66 66
      */
67
-    public const SUITE_METHODNAME  = 'suite';
67
+    public const SUITE_METHODNAME = 'suite';
68 68
 
69 69
     /**
70 70
      * Returns the loader to be used.
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/src/Runner/TestSuiteSorter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
     {
205 205
         return \array_reduce(
206 206
             $suite->tests(),
207
-            function ($carry, $test) {
207
+            function($carry, $test) {
208 208
                 return $carry && ($test instanceof TestCase || $test instanceof DataProviderTestSuite);
209 209
             },
210 210
             true
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     {
228 228
         \usort(
229 229
             $tests,
230
-            function ($left, $right) {
230
+            function($left, $right) {
231 231
                 return $this->cmpDefectPriorityAndTime($left, $right);
232 232
             }
233 233
         );
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     {
240 240
         \usort(
241 241
             $tests,
242
-            function ($left, $right) {
242
+            function($left, $right) {
243 243
                 return $this->cmpDuration($left, $right);
244 244
             }
245 245
         );
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 
302 302
         do {
303 303
             $todoNames = \array_map(
304
-                function ($test) {
304
+                function($test) {
305 305
                     return self::getTestSorterUID($test);
306 306
                 },
307 307
                 $tests
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
         }
333 333
 
334 334
         $names = \array_map(
335
-            function ($name) use ($testClass) {
335
+            function($name) use ($testClass) {
336 336
                 return \strpos($name, '::') === false ? $testClass . '::' . $name : $name;
337 337
             },
338 338
             $test->getDependencies()
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -255,8 +255,8 @@  discard block
 block discarded – undo
255 255
     {
256 256
         if ($this->numTests == -1) {
257 257
             $this->numTests      = \count($suite);
258
-            $this->numTestsWidth = \strlen((string) $this->numTests);
259
-            $this->maxColumn     = $this->numberOfColumns - \strlen('  /  (XXX%)') - (2 * $this->numTestsWidth);
258
+            $this->numTestsWidth = \strlen((string)$this->numTests);
259
+            $this->maxColumn     = $this->numberOfColumns - \strlen('  /  (XXX%)') - (2*$this->numTestsWidth);
260 260
         }
261 261
     }
262 262
 
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
     protected function printDefectTrace(TestFailure $defect): void
369 369
     {
370 370
         $e = $defect->thrownException();
371
-        $this->write((string) $e);
371
+        $this->write((string)$e);
372 372
 
373 373
         while ($e = $e->getPrevious()) {
374 374
             $this->write("\nCaused by\n" . $e);
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
                     $this->numTestsWidth . 'd (%3s%%)',
508 508
                     $this->numTestsRun,
509 509
                     $this->numTests,
510
-                    \floor(($this->numTestsRun / $this->numTests) * 100)
510
+                    \floor(($this->numTestsRun/$this->numTests)*100)
511 511
                 )
512 512
             );
513 513
 
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/src/TextUI/Command.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 
313 313
                 case '--columns':
314 314
                     if (\is_numeric($option[1])) {
315
-                        $this->arguments['columns'] = (int) $option[1];
315
+                        $this->arguments['columns'] = (int)$option[1];
316 316
                     } elseif ($option[1] === 'max') {
317 317
                         $this->arguments['columns'] = 'max';
318 318
                     }
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
                     break;
518 518
 
519 519
                 case '--repeat':
520
-                    $this->arguments['repeat'] = (int) $option[1];
520
+                    $this->arguments['repeat'] = (int)$option[1];
521 521
 
522 522
                     break;
523 523
 
@@ -694,7 +694,7 @@  discard block
 block discarded – undo
694 694
                     break;
695 695
 
696 696
                 case '--default-time-limit':
697
-                    $this->arguments['defaultTimeLimit'] = (int) $option[1];
697
+                    $this->arguments['defaultTimeLimit'] = (int)$option[1];
698 698
 
699 699
                     break;
700 700
 
@@ -729,7 +729,7 @@  discard block
 block discarded – undo
729 729
                     break;
730 730
 
731 731
                 case '--random-order-seed':
732
-                    $this->arguments['randomOrderSeed'] = (int) $option[1];
732
+                    $this->arguments['randomOrderSeed'] = (int)$option[1];
733 733
 
734 734
                     break;
735 735
 
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/src/Util/Json.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@
 block discarded – undo
67 67
             // But EMPTY objects MUST remain empty objects. (Otherwise we will
68 68
             // re-encode it as a JSON array rather than a JSON object.)
69 69
             // See #2919.
70
-            if (\is_object($json) && \count((array) $json) > 0) {
71
-                $json = (array) $json;
70
+            if (\is_object($json) && \count((array)$json) > 0) {
71
+                $json = (array)$json;
72 72
             } else {
73 73
                 return;
74 74
             }
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/src/Util/ErrorHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public static function handleErrorOnce($severity = \E_WARNING): callable
83 83
     {
84
-        $terminator = function () {
84
+        $terminator = function() {
85 85
             static $expired = false;
86 86
 
87 87
             if (!$expired) {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         };
93 93
 
94 94
         \set_error_handler(
95
-            function ($errorNumber, $errorString) use ($severity) {
95
+            function($errorNumber, $errorString) use ($severity) {
96 96
                 if ($errorNumber === $severity) {
97 97
                     return;
98 98
                 }
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/src/Util/PHP/AbstractPhpProcess.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
                 $time
239 239
             );
240 240
         } else {
241
-            \set_error_handler(function ($errno, $errstr, $errfile, $errline): void {
241
+            \set_error_handler(function($errno, $errstr, $errfile, $errline): void {
242 242
                 throw new ErrorException($errstr, $errno, $errno, $errfile, $errline);
243 243
             });
244 244
 
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
         if ($exception instanceof __PHP_Incomplete_Class) {
355 355
             $exceptionArray = [];
356 356
 
357
-            foreach ((array) $exception as $key => $value) {
357
+            foreach ((array)$exception as $key => $value) {
358 358
                 $key                  = \substr($key, \strrpos($key, "\0") + 1);
359 359
                 $exceptionArray[$key] = $value;
360 360
             }
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/src/Util/TestDox/XmlResultPrinter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
         $groups = \array_filter(
154 154
             $test->getGroups(),
155
-            function ($group) {
155
+            function($group) {
156 156
                 return !($group === 'small' || $group === 'medium' || $group === 'large');
157 157
             }
158 158
         );
@@ -172,11 +172,11 @@  discard block
 block discarded – undo
172 172
 
173 173
         if (isset($inlineAnnotations['given'], $inlineAnnotations['when'], $inlineAnnotations['then'])) {
174 174
             $node->setAttribute('given', $inlineAnnotations['given']['value']);
175
-            $node->setAttribute('givenStartLine', (string) $inlineAnnotations['given']['line']);
175
+            $node->setAttribute('givenStartLine', (string)$inlineAnnotations['given']['line']);
176 176
             $node->setAttribute('when', $inlineAnnotations['when']['value']);
177
-            $node->setAttribute('whenStartLine', (string) $inlineAnnotations['when']['line']);
177
+            $node->setAttribute('whenStartLine', (string)$inlineAnnotations['when']['line']);
178 178
             $node->setAttribute('then', $inlineAnnotations['then']['value']);
179
-            $node->setAttribute('thenStartLine', (string) $inlineAnnotations['then']['line']);
179
+            $node->setAttribute('thenStartLine', (string)$inlineAnnotations['then']['line']);
180 180
         }
181 181
 
182 182
         if ($this->exception !== null) {
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/src/Util/TestDox/TestResult.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -110,14 +110,14 @@  discard block
 block discarded – undo
110 110
     private function getFormattedRuntime(): string
111 111
     {
112 112
         if ($this->runtime > 5) {
113
-            return ($this->colorize)('fg-red', \sprintf('[%.2f ms]', $this->runtime * 1000));
113
+            return ($this->colorize)('fg-red', \sprintf('[%.2f ms]', $this->runtime*1000));
114 114
         }
115 115
 
116 116
         if ($this->runtime > 1) {
117
-            return ($this->colorize)('fg-yellow', \sprintf('[%.2f ms]', $this->runtime * 1000));
117
+            return ($this->colorize)('fg-yellow', \sprintf('[%.2f ms]', $this->runtime*1000));
118 118
         }
119 119
 
120
-        return \sprintf('[%.2f ms]', $this->runtime * 1000);
120
+        return \sprintf('[%.2f ms]', $this->runtime*1000);
121 121
     }
122 122
 
123 123
     private function getFormattedAdditionalInformation($verbose): string
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             \implode(
132 132
                 "\n",
133 133
                 \array_map(
134
-                    function (string $text) {
134
+                    function(string $text) {
135 135
                         return \sprintf('   │ %s', $text);
136 136
                     },
137 137
                     \explode("\n", $this->additionalInformation)
Please login to merge, or discard this patch.