@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | return $this->taskCount; |
51 | 51 | } |
52 | 52 | |
53 | - protected function showStringOrArray(string|array $variable): string |
|
53 | + protected function showStringOrArray(string | array $variable): string |
|
54 | 54 | { |
55 | 55 | return (is_string($variable) ? "'$variable'" : var_export($variable, true)); |
56 | 56 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | /** |
92 | 92 | * Is $actual greater than $expected? |
93 | 93 | */ |
94 | - protected function assertGreaterThan(int|float $expected, int|float $actual): void |
|
94 | + protected function assertGreaterThan(int | float $expected, int | float $actual): void |
|
95 | 95 | { |
96 | 96 | $success = ($actual > $expected); |
97 | 97 | $message = ($success) ? "" : "$actual is not greater than $expected."; |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | /** |
102 | 102 | * Is $actual less than $expected? |
103 | 103 | */ |
104 | - protected function assertLessThan(int|float $expected, int|float $actual): void |
|
104 | + protected function assertLessThan(int | float $expected, int | float $actual): void |
|
105 | 105 | { |
106 | 106 | $success = ($actual < $expected); |
107 | 107 | $message = ($success) ? "" : "$actual is not less than $expected."; |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | /** |
172 | 172 | * Does $actual contain $needle? |
173 | 173 | */ |
174 | - protected function assertContains(string|array $needle, string|array $actual): void |
|
174 | + protected function assertContains(string | array $needle, string | array $actual): void |
|
175 | 175 | { |
176 | 176 | if (is_string($actual) && is_string($needle)) { |
177 | 177 | $success = ($needle !== "" && str_contains($actual, $needle)); |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | /** |
190 | 190 | * Does $actual not contain $needle? |
191 | 191 | */ |
192 | - protected function assertNotContains(string|array $needle, string|array $actual): void |
|
192 | + protected function assertNotContains(string | array $needle, string | array $actual): void |
|
193 | 193 | { |
194 | 194 | if (is_string($actual) && is_string($needle)) { |
195 | 195 | $success = ($needle === "" || !str_contains($actual, $needle)); |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | /** |
208 | 208 | * Does $value contain $count items? |
209 | 209 | */ |
210 | - protected function assertCount(int $count, array|\Countable $value): void |
|
210 | + protected function assertCount(int $count, array | \Countable $value): void |
|
211 | 211 | { |
212 | 212 | $actual = count($value); |
213 | 213 | $success = ($actual === $count); |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * Does $value not contain $count items? |
220 | 220 | */ |
221 | - protected function assertNotCount(int $count, array|\Countable $value): void |
|
221 | + protected function assertNotCount(int $count, array | \Countable $value): void |
|
222 | 222 | { |
223 | 223 | $actual = count($value); |
224 | 224 | $success = ($actual !== $count); |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | /** |
230 | 230 | * Is $value of type $type? |
231 | 231 | */ |
232 | - protected function assertType(string|object $type, mixed $value): void |
|
232 | + protected function assertType(string | object $type, mixed $value): void |
|
233 | 233 | { |
234 | 234 | if ( |
235 | 235 | in_array($type, [ |