Failed Conditions
Pull Request — master (#62)
by Donald
03:08 queued 01:23
created
test/Integration/Chekote/NounStore/Store/GetTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -75,15 +75,15 @@
 block discarded – undo
75 75
     public static function happyPathDataProvider(): array
76 76
     {
77 77
         return [
78
-            'Noun'                       => ['Person',               self::$alice,                'Alice is the most recent Person in the store'],
79
-            'Nth Noun'                   => ['1st Person',           self::$bob,                  'Bob is the 1st Person in the store'],
80
-            'Related Noun'               => ["Person's car",         [self::$ford, self::$chevy], 'Alice is the most recent Person in the store, and cars are Ford and Chevrolet'],
81
-            'Related Nth Noun'           => ["Person's 1st car",     self::$ford,                 'Alice is the most recent Person in the store, and her 1st car is the Ford'],
82
-            'Nth Nouns Related Noun'     => ["1st Person's car",     [self::$kia, self::$toyota], 'Bob is the 1st Person in the store, and his cars are Kia and Toyota'],
83
-            'Nth Nouns Related Nth Noun' => ["1st Person's 1st car", self::$kia,                  'Bob is the 1st Person in the store, and his 1st car is the Kia'],
84
-            'Missing Noun'               => ['Dog',                  null,                        'Dog does not exist in the store'],
85
-            'Missing Nth Noun'           => ['3rd Person',           null,                        '3rd Person does not exist in the store'],
86
-            'Missing Related Noun'       => ["Person's dog",         null,                        'Alice is the most recent Person in the store, but has no dog'],
78
+            'Noun'                       => ['Person', self::$alice, 'Alice is the most recent Person in the store'],
79
+            'Nth Noun'                   => ['1st Person', self::$bob, 'Bob is the 1st Person in the store'],
80
+            'Related Noun'               => ["Person's car", [self::$ford, self::$chevy], 'Alice is the most recent Person in the store, and cars are Ford and Chevrolet'],
81
+            'Related Nth Noun'           => ["Person's 1st car", self::$ford, 'Alice is the most recent Person in the store, and her 1st car is the Ford'],
82
+            'Nth Nouns Related Noun'     => ["1st Person's car", [self::$kia, self::$toyota], 'Bob is the 1st Person in the store, and his cars are Kia and Toyota'],
83
+            'Nth Nouns Related Nth Noun' => ["1st Person's 1st car", self::$kia, 'Bob is the 1st Person in the store, and his 1st car is the Kia'],
84
+            'Missing Noun'               => ['Dog', null, 'Dog does not exist in the store'],
85
+            'Missing Nth Noun'           => ['3rd Person', null, '3rd Person does not exist in the store'],
86
+            'Missing Related Noun'       => ["Person's dog", null, 'Alice is the most recent Person in the store, but has no dog'],
87 87
         ];
88 88
     }
89 89
 
Please login to merge, or discard this patch.
test/Unit/Chekote/NounStore/Key/GetOrdinalTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
     public static function successScenariosDataProvider(): array
20 20
     {
21 21
         return [
22
-            [0,   'th'], [1,   'st'], [2,   'nd'], [3,   'rd'],
23
-            [4,   'th'], [5,   'th'], [6,   'th'], [7,   'th'],
24
-            [8,   'th'], [9,   'th'], [10,  'th'], [11,  'th'],
25
-            [12,  'th'], [13,  'th'], [14,  'th'], [21,  'st'],
26
-            [22,  'nd'], [23,  'rd'], [24,  'th'], [101, 'st'],
22
+            [0, 'th'], [1, 'st'], [2, 'nd'], [3, 'rd'],
23
+            [4, 'th'], [5, 'th'], [6, 'th'], [7, 'th'],
24
+            [8, 'th'], [9, 'th'], [10, 'th'], [11, 'th'],
25
+            [12, 'th'], [13, 'th'], [14, 'th'], [21, 'st'],
26
+            [22, 'nd'], [23, 'rd'], [24, 'th'], [101, 'st'],
27 27
             [102, 'nd'], [103, 'rd'], [104, 'th'],
28 28
         ];
29 29
     }
Please login to merge, or discard this patch.
test/Unit/Chekote/NounStore/Key/SplitPossessionsTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,11 +35,11 @@
 block discarded – undo
35 35
     public static function nouns(): array
36 36
     {
37 37
         return [
38
-            ['Frenchman',                      ['Frenchman'                       ]],
39
-            ["Dude's Car",                     ['Dude',         'Car'             ]],
40
-            ["8th Customer's Car",             ['8th Customer', 'Car'             ]],
41
-            ["Lad's 2nd Car",                  ['Lad',          '2nd Car'         ]],
42
-            ["7th Customer's 4th Car",         ['7th Customer', '4th Car'         ]],
38
+            ['Frenchman', ['Frenchman']],
39
+            ["Dude's Car", ['Dude', 'Car']],
40
+            ["8th Customer's Car", ['8th Customer', 'Car']],
41
+            ["Lad's 2nd Car", ['Lad', '2nd Car']],
42
+            ["7th Customer's 4th Car", ['7th Customer', '4th Car']],
43 43
             ["7th Customer's 4th Car's Wheel", ['7th Customer', '4th Car', 'Wheel']],
44 44
         ];
45 45
     }
Please login to merge, or discard this patch.
test/Unit/Chekote/NounStore/Store/KeyIsClassTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
     {
36 36
         return [
37 37
             // storedValue,   checkedValue,           expectedResult
38
-            [ new stdClass(), stdClass::class,        true   ],
39
-            [ new stdClass(), KeyIsClassTest::class,  false  ],
38
+            [new stdClass(), stdClass::class, true],
39
+            [new stdClass(), KeyIsClassTest::class, false],
40 40
         ];
41 41
     }
42 42
 
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/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.
test/Unit/Chekote/NounStore/Assert/AssertTestCase.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
10 10
 
11 11
 abstract class AssertTestCase extends TestCase
12 12
 {
13
-    protected IMock|AssertPhake $assert;
13
+    protected IMock | AssertPhake $assert;
14 14
 
15
-    protected IMock|StorePhake $store;
15
+    protected IMock | StorePhake $store;
16 16
 
17
-    protected IMock|KeyPhake $key;
17
+    protected IMock | KeyPhake $key;
18 18
 
19 19
     /**
20 20
      * Sets up the environment before each test.
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 $key;
13
+    protected IMock | KeyPhake $key;
14 14
 
15
-    protected IMock|StorePhake $store;
15
+    protected IMock | StorePhake $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/Key/KeyTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 {
11 11
     const INVALID_KEY = "It's's invalid because of the double apostrophe";
12 12
 
13
-    protected IMock|KeyPhake $key;
13
+    protected IMock | KeyPhake $key;
14 14
 
15 15
     /**
16 16
      * Sets up the environment before each test.
Please login to merge, or discard this patch.