@@ -25,15 +25,15 @@ |
||
25 | 25 | { |
26 | 26 | return [ |
27 | 27 | // key index parsedKey, parsedIndex |
28 | - ['Thing', null, 'Thing', null], // no nth in key or index param |
|
29 | - ['1st Thing', null, 'Thing', 0], // 1st in key with no index param |
|
30 | - ['1st Thing', 0, 'Thing', 0], // nth in key with matching index param |
|
31 | - ['2nd Thing', null, 'Thing', 1], // 2nd in key with no index param |
|
32 | - ['3rd Thing', null, 'Thing', 2], // 3rd in key with no index param |
|
33 | - ['4th Thing', null, 'Thing', 3], // 3th in key with no index param |
|
34 | - ['478th Thing', null, 'Thing', 477], // high nth in key with no index param |
|
35 | - ['Thing', 0, 'Thing', 0], // no nth in key with 0 index param |
|
36 | - ['Thing', 49, 'Thing', 49], // no nth in key with high index param |
|
28 | + ['Thing', null, 'Thing', null], // no nth in key or index param |
|
29 | + ['1st Thing', null, 'Thing', 0], // 1st in key with no index param |
|
30 | + ['1st Thing', 0, 'Thing', 0], // nth in key with matching index param |
|
31 | + ['2nd Thing', null, 'Thing', 1], // 2nd in key with no index param |
|
32 | + ['3rd Thing', null, 'Thing', 2], // 3rd in key with no index param |
|
33 | + ['4th Thing', null, 'Thing', 3], // 3th in key with no index param |
|
34 | + ['478th Thing', null, 'Thing', 477], // high nth in key with no index param |
|
35 | + ['Thing', 0, 'Thing', 0], // no nth in key with 0 index param |
|
36 | + ['Thing', 49, 'Thing', 49], // no nth in key with high index param |
|
37 | 37 | ]; |
38 | 38 | } |
39 | 39 |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | /* @noinspection PhpUndefinedMethodInspection */ |
56 | 56 | Phake::when($this->key)->parse($key, $index)->thenThrow($exception); |
57 | 57 | |
58 | - $this->assertException($exception, function () use ($key, $value, $index) { |
|
58 | + $this->assertException($exception, function() use ($key, $value, $index) { |
|
59 | 59 | $this->assert->keyValueIs($key, $value, $index); |
60 | 60 | }); |
61 | 61 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | Phake::when($this->assert)->keyExists($parsedKey, $parsedIndex)->thenThrow($exception); |
79 | 79 | } |
80 | 80 | |
81 | - $this->assertException($exception, function () use ($key, $value, $index) { |
|
81 | + $this->assertException($exception, function() use ($key, $value, $index) { |
|
82 | 82 | $this->assert->keyValueIs($key, $value, $index); |
83 | 83 | }); |
84 | 84 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | Phake::when($this->key)->build($parsedKey, $parsedIndex)->thenReturn($key); |
107 | 107 | } |
108 | 108 | |
109 | - $this->assertException($exception, function () use ($key, $value, $index) { |
|
109 | + $this->assertException($exception, function() use ($key, $value, $index) { |
|
110 | 110 | $this->assert->keyValueIs($key, $value, $index); |
111 | 111 | }); |
112 | 112 |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | /* @noinspection PhpUndefinedMethodInspection */ |
53 | 53 | Phake::when($this->key)->parse($key, $index)->thenThrow($exception); |
54 | 54 | |
55 | - $this->assertException($exception, function () use ($key, $index) { |
|
55 | + $this->assertException($exception, function() use ($key, $index) { |
|
56 | 56 | $this->assert->keyExists($key, $index); |
57 | 57 | }); |
58 | 58 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | Phake::when($this->key)->build($parsedKey, $parsedIndex)->thenReturn($key); |
77 | 77 | } |
78 | 78 | |
79 | - $this->assertException($exception, function () use ($key, $index) { |
|
79 | + $this->assertException($exception, function() use ($key, $index) { |
|
80 | 80 | $this->assert->keyExists($key, $index); |
81 | 81 | }); |
82 | 82 |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /* @noinspection PhpUndefinedMethodInspection */ |
51 | 51 | Phake::when($this->key)->parse($key, $index)->thenThrow($exception); |
52 | 52 | |
53 | - $this->assertException($exception, function () use ($key, $index) { |
|
53 | + $this->assertException($exception, function() use ($key, $index) { |
|
54 | 54 | $this->store->keyValueContains($key, "Doesn't matter", $index); |
55 | 55 | }); |
56 | 56 | |
@@ -62,8 +62,8 @@ discard block |
||
62 | 62 | { |
63 | 63 | return [ |
64 | 64 | // storedValue, checkedValue, expectedResult |
65 | - [ 'This is a value', 'is a', true ], |
|
66 | - [ 'This is a value', 'words', false ], |
|
65 | + ['This is a value', 'is a', true], |
|
66 | + ['This is a value', 'words', false], |
|
67 | 67 | ]; |
68 | 68 | } |
69 | 69 |
@@ -49,7 +49,7 @@ |
||
49 | 49 | /* @noinspection PhpUndefinedMethodInspection */ |
50 | 50 | Phake::when($this->key)->parse($key, $index)->thenThrow($exception); |
51 | 51 | |
52 | - $this->assertException($exception, function () use ($key, $index) { |
|
52 | + $this->assertException($exception, function() use ($key, $index) { |
|
53 | 53 | $this->store->get($key, $index); |
54 | 54 | }); |
55 | 55 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | /* @noinspection PhpUndefinedMethodInspection */ |
28 | 28 | Phake::when($this->key)->parse($key, $index)->thenThrow($exception); |
29 | 29 | |
30 | - $this->assertException($exception, function () use ($key, $index) { |
|
30 | + $this->assertException($exception, function() use ($key, $index) { |
|
31 | 31 | $this->store->keyExists($key, $index); |
32 | 32 | }); |
33 | 33 | |
@@ -39,10 +39,10 @@ discard block |
||
39 | 39 | { |
40 | 40 | return [ |
41 | 41 | // key, index, expectedResult |
42 | - [ 'No such key', null, false ], // missing key |
|
43 | - [ StoreTest::KEY, 2, false ], // missing index |
|
44 | - [ StoreTest::KEY, null, true ], // present key |
|
45 | - [ StoreTest::KEY, 1, true ], // present index |
|
42 | + ['No such key', null, false], // missing key |
|
43 | + [StoreTest::KEY, 2, false], // missing index |
|
44 | + [StoreTest::KEY, null, true], // present key |
|
45 | + [StoreTest::KEY, 1, true], // present index |
|
46 | 46 | ]; |
47 | 47 | } |
48 | 48 |
@@ -49,7 +49,7 @@ |
||
49 | 49 | /* @noinspection PhpUndefinedMethodInspection */ |
50 | 50 | Phake::when($this->key)->getOrdinal($nth)->thenThrow($exception); |
51 | 51 | |
52 | - $this->assertException($exception, function () use ($key, $index) { |
|
52 | + $this->assertException($exception, function() use ($key, $index) { |
|
53 | 53 | $this->key->build($key, $index); |
54 | 54 | }); |
55 | 55 |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | /* @noinspection PhpUndefinedMethodInspection */ |
49 | 49 | Phake::expect($this->key, 1)->parse($key, $index)->thenThrow($exception); |
50 | 50 | |
51 | - $this->assertException($exception, function () use ($key, $value, $index) { |
|
51 | + $this->assertException($exception, function() use ($key, $value, $index) { |
|
52 | 52 | $this->assert->keyValueContains($key, $value, $index); |
53 | 53 | }); |
54 | 54 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | Phake::expect($this->assert, 1)->keyExists($parsedKey, $parsedIndex)->thenThrow($exception); |
69 | 69 | } |
70 | 70 | |
71 | - $this->assertException($exception, function () use ($key, $value, $index) { |
|
71 | + $this->assertException($exception, function() use ($key, $value, $index) { |
|
72 | 72 | $this->assert->keyValueContains($key, $value, $index); |
73 | 73 | }); |
74 | 74 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | Phake::expect($this->key, 1)->build($parsedKey, $parsedIndex)->thenReturn($key); |
91 | 91 | } |
92 | 92 | |
93 | - $this->assertException($exception, function () use ($key, $value, $index) { |
|
93 | + $this->assertException($exception, function() use ($key, $value, $index) { |
|
94 | 94 | $this->assert->keyValueContains($key, $value, $index); |
95 | 95 | }); |
96 | 96 | } |