Skip to content

Commit 930484f

Browse files
author
smoench
committed
fix tests
1 parent 6c6f139 commit 930484f

3 files changed

Lines changed: 9 additions & 15 deletions

File tree

tests/Compactor/PhpTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class AClass
111111
*/
112112
public function aMethod()
113113
{
114-
\$test = true;# a comment
114+
\$test = true;
115115
}
116116
}
117117
PHP
@@ -130,7 +130,7 @@ class AClass
130130
public function aMethod()
131131
{
132132
\$test = true;
133-
}
133+
}
134134
}
135135
PHP
136136
];

tests/Configuration/ConfigurationPhpCompactorTest.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ public function providePhpContentsToCompact(): Generator
231231
* @Acme(type = "function")
232232
*/
233233
function foo($x, $y): int {
234-
// Compare the two values
235234
return $x <=> $y;
236235
}
237236
PHP
@@ -253,8 +252,7 @@ function foo($x, $y): int {
253252
254253
*/
255254
function foo($x, $y): int {
256-
257-
return $x <=> $y;
255+
return $x <=> $y;
258256
}
259257
PHP
260258
];
@@ -293,7 +291,6 @@ function foo($x, $y): int {
293291
* @Acme(type = "function")
294292
*/
295293
function foo($x, $y): int {
296-
// Compare the two values
297294
return $x <=> $y;
298295
}
299296
PHP
@@ -315,8 +312,7 @@ function foo($x, $y): int {
315312
316313
*/
317314
function foo($x, $y): int {
318-
319-
return $x <=> $y;
315+
return $x <=> $y;
320316
}
321317
PHP
322318
];
@@ -350,7 +346,6 @@ function foo($x, $y): int {
350346
* @Acme(type = "function")
351347
*/
352348
function foo($x, $y): int {
353-
// Compare the two values
354349
return $x <=> $y;
355350
}
356351
PHP
@@ -372,8 +367,7 @@ function foo($x, $y): int {
372367
373368
*/
374369
function foo($x, $y): int {
375-
376-
return $x <=> $y;
370+
return $x <=> $y;
377371
}
378372
PHP
379373
];
@@ -400,7 +394,6 @@ function foo($x, $y): int {
400394
* @Acme(type = "function")
401395
*/
402396
function foo($x, $y): int {
403-
// Compare the two values
404397
return $x <=> $y;
405398
}
406399
PHP
@@ -422,8 +415,7 @@ function foo($x, $y): int {
422415
423416
*/
424417
function foo($x, $y): int {
425-
426-
return $x <=> $y;
418+
return $x <=> $y;
427419
}
428420
PHP
429421
];

tests/PhpScoper/SerializablePhpScoperTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ public function scope(string $filePath, string $contents, string $prefix, array
180180
static function () use ($scoper) {
181181
return $scoper;
182182
},
183-
"Serialization of 'class@anonymous' is not allowed",
183+
PHP_VERSION_ID < 80000
184+
? "Serialization of 'class@anonymous' is not allowed"
185+
: "Serialization of 'Humbug\PhpScoper\Scoper@anonymous' is not allowed",
184186
];
185187
})();
186188
}

0 commit comments

Comments
 (0)