Failed Conditions
Pull Request — master (#62)
by Donald
03:32 queued 01:38
created
test/Unit/Chekote/Phake/Expectation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @throws ExpectationException        if args have not been set for the expectation.
46 46
      * @return array|VerifierProxy
47 47
      */
48
-    public function verify(): array|VerifierProxy
48
+    public function verify(): array | VerifierProxy
49 49
     {
50 50
         if (!isset($this->method)) {
51 51
             throw new ExpectationException('Expectation method was not set');
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      * @param  array                      $args   the args that are expected to be passed to the method.
67 67
      * @return AnswerBinderProxy|StubberProxy
68 68
      */
69
-    public function __call(string $method, array $args): AnswerBinderProxy|StubberProxy
69
+    public function __call(string $method, array $args): AnswerBinderProxy | StubberProxy
70 70
     {
71 71
         // record the method and args for verification later
72 72
         $this->method = $method;
Please login to merge, or discard this patch.
test/Unit/Chekote/NounStore/Store/KeyExistsTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@
 block discarded – undo
34 34
     {
35 35
         return [
36 36
             // key,               value                              exists?
37
-            [ 'No such key',      null,                              false ], // missing key
38
-            [ StoreTestCase::KEY, StoreTestCase::$mostRecentValue, true  ], // present key
37
+            ['No such key', null, false], // missing key
38
+            [StoreTestCase::KEY, StoreTestCase::$mostRecentValue, true], // present key
39 39
         ];
40 40
     }
41 41
 
Please login to merge, or discard this patch.
test/Unit/Chekote/NounStore/Store/StoreTestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 
11 11
 abstract class StoreTestCase extends TestCase
12 12
 {
13
-    protected IMock|KeyPhake|null $key;
13
+    protected IMock | KeyPhake | null $key;
14 14
 
15
-    protected IMock|StorePhake|null $store;
15
+    protected IMock | StorePhake | null $store;
16 16
 
17 17
     /** the first value stored under self::KEY */
18 18
     protected static stdClass $firstValue;
Please login to merge, or discard this patch.
test/Unit/Chekote/NounStore/Store/GetTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -60,15 +60,15 @@
 block discarded – undo
60 60
     {
61 61
         return [
62 62
             //                                                     key                                             parsed key                                     expected
63
-            'Noun without index returns most recent noun'      => [StoreTestCase::KEY,                            [[StoreTestCase::KEY, null]],                   StoreTestCase::$mostRecentValue],
64
-            'Noun with index returns specific noun'            => ['1st ' . StoreTestCase::KEY,                   [[StoreTestCase::KEY,    0]],                   StoreTestCase::$firstValue],
65
-            'Non-existent noun returns null'                   => ['3rd ' . StoreTestCase::KEY,                   [[StoreTestCase::KEY,    2]],                   null],
66
-            'Possessive noun w/o index string property'        => [StoreTestCase::KEY . "'s color",               [[StoreTestCase::KEY, null], ['color', null]],  'Blue'],
67
-            'Possessive noun with index string property'       => ['1st ' . StoreTestCase::KEY . "'s color",      [[StoreTestCase::KEY, 0], ['color', null]],     'Red'],
68
-            'Possessive noun w/o index collection w/o index'   => [StoreTestCase::KEY . "'s option",              [[StoreTestCase::KEY, null], ['option', null]], ['Cruise Control', 'Air Conditioning']],
69
-            'Possessive noun with index collection w/o index'  => ['1st ' . StoreTestCase::KEY . "'s option",     [[StoreTestCase::KEY, 0], ['option', null]],    ['GPS', 'Heated Seats']],
70
-            'Possessive noun w/o index collection with index'  => [StoreTestCase::KEY . "'s 1st option",          [[StoreTestCase::KEY, null], ['option', 0]],    'Cruise Control'],
71
-            'Possessive noun with index collection with index' => ['1st ' . StoreTestCase::KEY . "'s 1st option", [[StoreTestCase::KEY, 0], ['option', 0]],       'GPS'],
63
+            'Noun without index returns most recent noun'      => [StoreTestCase::KEY, [[StoreTestCase::KEY, null]], StoreTestCase::$mostRecentValue],
64
+            'Noun with index returns specific noun'            => ['1st ' . StoreTestCase::KEY, [[StoreTestCase::KEY, 0]], StoreTestCase::$firstValue],
65
+            'Non-existent noun returns null'                   => ['3rd ' . StoreTestCase::KEY, [[StoreTestCase::KEY, 2]], null],
66
+            'Possessive noun w/o index string property'        => [StoreTestCase::KEY . "'s color", [[StoreTestCase::KEY, null], ['color', null]], 'Blue'],
67
+            'Possessive noun with index string property'       => ['1st ' . StoreTestCase::KEY . "'s color", [[StoreTestCase::KEY, 0], ['color', null]], 'Red'],
68
+            'Possessive noun w/o index collection w/o index'   => [StoreTestCase::KEY . "'s option", [[StoreTestCase::KEY, null], ['option', null]], ['Cruise Control', 'Air Conditioning']],
69
+            'Possessive noun with index collection w/o index'  => ['1st ' . StoreTestCase::KEY . "'s option", [[StoreTestCase::KEY, 0], ['option', null]], ['GPS', 'Heated Seats']],
70
+            'Possessive noun w/o index collection with index'  => [StoreTestCase::KEY . "'s 1st option", [[StoreTestCase::KEY, null], ['option', 0]], 'Cruise Control'],
71
+            'Possessive noun with index collection with index' => ['1st ' . StoreTestCase::KEY . "'s 1st option", [[StoreTestCase::KEY, 0], ['option', 0]], 'GPS'],
72 72
         ];
73 73
     }
74 74
 }
Please login to merge, or discard this patch.