Test Failed
Pull Request — master (#18)
by Ylva
07:22
created
a/vendor/phpunit/phpunit/tests/unit/Framework/Constraint/LogicalXorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         $other = 'Foo';
21 21
         $count = 5;
22 22
 
23
-        $constraints = \array_map(function () use ($other) {
23
+        $constraints = \array_map(function() use ($other) {
24 24
             static $count = 0;
25 25
 
26 26
             $constraint = $this->getMockBuilder(Constraint::class)->getMock();
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
                 ->expects($this->once())
30 30
                 ->method('evaluate')
31 31
                 ->with($this->identicalTo($other))
32
-                ->willReturn($count % 2 === 1);
32
+                ->willReturn($count%2 === 1);
33 33
 
34 34
             ++$count;
35 35
 
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/tests/unit/Framework/Constraint/CallbackTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@  discard block
 block discarded – undo
25 25
 
26 26
     public function testConstraintCallback(): void
27 27
     {
28
-        $closureReflect = function ($parameter) {
28
+        $closureReflect = function($parameter) {
29 29
             return $parameter;
30 30
         };
31 31
 
32
-        $closureWithoutParameter = function () {
32
+        $closureWithoutParameter = function() {
33 33
             return true;
34 34
         };
35 35
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     public function testConstraintCallbackFailure(): void
55 55
     {
56
-        $constraint = new Callback(function () {
56
+        $constraint = new Callback(function() {
57 57
             return false;
58 58
         });
59 59
 
Please login to merge, or discard this patch.
phpunit/phpunit/tests/end-to-end/regression/GitHub/581/Issue581Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
     public function testExportingObjectsDoesNotBreakWindowsLineFeeds(): void
15 15
     {
16 16
         $this->assertEquals(
17
-            (object) [1, 2, "Test\r\n", 4, 5, 6, 7, 8],
18
-            (object) [1, 2, "Test\r\n", 4, 1, 6, 7, 8]
17
+            (object)[1, 2, "Test\r\n", 4, 5, 6, 7, 8],
18
+            (object)[1, 2, "Test\r\n", 4, 1, 6, 7, 8]
19 19
         );
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
phpunit/phpunit/tests/end-to-end/regression/GitHub/1335/bootstrap1335.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
 $globalNull                            = null;
17 17
 $globalArray                           = ['foo'];
18 18
 $globalNestedArray                     = [['foo']];
19
-$globalObject                          = (object) ['foo'=> 'bar'];
20
-$globalObjectWithBackSlashString       = (object) ['foo'=> 'back\\slash'];
21
-$globalObjectWithDoubleBackSlashString = (object) ['foo'=> 'back\\\\slash'];
19
+$globalObject                          = (object)['foo'=> 'bar'];
20
+$globalObjectWithBackSlashString       = (object)['foo'=> 'back\\slash'];
21
+$globalObjectWithDoubleBackSlashString = (object)['foo'=> 'back\\\\slash'];
Please login to merge, or discard this patch.
phpunit/phpunit/tests/end-to-end/regression/GitHub/1335/Issue1335Test.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,16 +62,16 @@
 block discarded – undo
62 62
 
63 63
     public function testGlobalObject(): void
64 64
     {
65
-        $this->assertEquals((object) ['foo'=> 'bar'], $GLOBALS['globalObject']);
65
+        $this->assertEquals((object)['foo'=> 'bar'], $GLOBALS['globalObject']);
66 66
     }
67 67
 
68 68
     public function testGlobalObjectWithBackSlashString(): void
69 69
     {
70
-        $this->assertEquals((object) ['foo'=> 'back\\slash'], $GLOBALS['globalObjectWithBackSlashString']);
70
+        $this->assertEquals((object)['foo'=> 'back\\slash'], $GLOBALS['globalObjectWithBackSlashString']);
71 71
     }
72 72
 
73 73
     public function testGlobalObjectWithDoubleBackSlashString(): void
74 74
     {
75
-        $this->assertEquals((object) ['foo'=> 'back\\\\slash'], $GLOBALS['globalObjectWithDoubleBackSlashString']);
75
+        $this->assertEquals((object)['foo'=> 'back\\\\slash'], $GLOBALS['globalObjectWithDoubleBackSlashString']);
76 76
     }
77 77
 }
Please login to merge, or discard this patch.
regression/GitHub/2724/SeparateClassRunMethodInNewProcessTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         parent::setUpBeforeClass();
29 29
 
30 30
         if (\file_exists(self::PROCESS_ID_FILE_PATH)) {
31
-            static::$masterPid = (int) \file_get_contents(self::PROCESS_ID_FILE_PATH);
31
+            static::$masterPid = (int)\file_get_contents(self::PROCESS_ID_FILE_PATH);
32 32
         }
33 33
     }
34 34
 
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/src/Runner/Filter/GroupFilterIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         parent::__construct($iterator);
26 26
 
27 27
         foreach ($suite->getGroupDetails() as $group => $tests) {
28
-            if (\in_array((string) $group, $groups, true)) {
28
+            if (\in_array((string)$group, $groups, true)) {
29 29
                 $testHashes = \array_map(
30 30
                     'spl_object_hash',
31 31
                     $tests
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/src/Runner/Filter/NameFilterIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
             $accepted = $set >= $this->filterMin && $set <= $this->filterMax;
70 70
         }
71 71
 
72
-        return (bool) $accepted;
72
+        return (bool)$accepted;
73 73
     }
74 74
 
75 75
     /**
Please login to merge, or discard this patch.
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.