@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $this->assertMatchesRegExp('/abc/', "1abc2"); |
68 | 68 | $this->assertArrayOfClass( |
69 | 69 | \stdClass::class, |
70 | - [new stdClass(), new stdClass(),] |
|
70 | + [new stdClass(), new stdClass(), ] |
|
71 | 71 | ); |
72 | 72 | } |
73 | 73 | |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | $this->assertOutput(function () { |
171 | 171 | $this->assertArrayOfClass( |
172 | 172 | \stdClass::class, |
173 | - [new stdClass(), new DummyEngine(), "abc",] |
|
173 | + [new stdClass(), new DummyEngine(), "abc", ] |
|
174 | 174 | ); |
175 | 175 | }, "Test 57 failed. The array does not contain only instances of stdClass.\n"); |
176 | 176 | $this->assertOutput(function () { |
@@ -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, string|array|\Countable $value): void |
|
210 | + protected function assertCount(int $count, string | array | \Countable $value): void |
|
211 | 211 | { |
212 | 212 | if (!is_array($value) && !$value instanceof \Countable) { |
213 | 213 | trigger_error("Passing string as parameter \$value to " . __METHOD__ . " is deprecated", E_USER_DEPRECATED); |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | /** |
224 | 224 | * Does $value not contain $count items? |
225 | 225 | */ |
226 | - protected function assertNotCount(int $count, string|array|\Countable $value): void |
|
226 | + protected function assertNotCount(int $count, string | array | \Countable $value): void |
|
227 | 227 | { |
228 | 228 | if (!is_array($value) && !$value instanceof \Countable) { |
229 | 229 | trigger_error("Passing string as parameter \$value to " . __METHOD__ . " is deprecated", E_USER_DEPRECATED); |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | /** |
240 | 240 | * Is $value of type $type? |
241 | 241 | */ |
242 | - protected function assertType(string|object $type, mixed $value): void |
|
242 | + protected function assertType(string | object $type, mixed $value): void |
|
243 | 243 | { |
244 | 244 | if ( |
245 | 245 | in_array($type, [ |