Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smoench committed Dec 18, 2020
1 parent 6c6f139 commit 930484f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
4 changes: 2 additions & 2 deletions tests/Compactor/PhpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class AClass
*/
public function aMethod()
{
\$test = true;# a comment
\$test = true;
}
}
PHP
Expand All @@ -130,7 +130,7 @@ class AClass
public function aMethod()
{
\$test = true;
}
}
}
PHP
];
Expand Down
16 changes: 4 additions & 12 deletions tests/Configuration/ConfigurationPhpCompactorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ public function providePhpContentsToCompact(): Generator
* @Acme(type = "function")
*/
function foo($x, $y): int {
// Compare the two values
return $x <=> $y;
}
PHP
Expand All @@ -253,8 +252,7 @@ function foo($x, $y): int {
*/
function foo($x, $y): int {
return $x <=> $y;
return $x <=> $y;
}
PHP
];
Expand Down Expand Up @@ -293,7 +291,6 @@ function foo($x, $y): int {
* @Acme(type = "function")
*/
function foo($x, $y): int {
// Compare the two values
return $x <=> $y;
}
PHP
Expand All @@ -315,8 +312,7 @@ function foo($x, $y): int {
*/
function foo($x, $y): int {
return $x <=> $y;
return $x <=> $y;
}
PHP
];
Expand Down Expand Up @@ -350,7 +346,6 @@ function foo($x, $y): int {
* @Acme(type = "function")
*/
function foo($x, $y): int {
// Compare the two values
return $x <=> $y;
}
PHP
Expand All @@ -372,8 +367,7 @@ function foo($x, $y): int {
*/
function foo($x, $y): int {
return $x <=> $y;
return $x <=> $y;
}
PHP
];
Expand All @@ -400,7 +394,6 @@ function foo($x, $y): int {
* @Acme(type = "function")
*/
function foo($x, $y): int {
// Compare the two values
return $x <=> $y;
}
PHP
Expand All @@ -422,8 +415,7 @@ function foo($x, $y): int {
*/
function foo($x, $y): int {
return $x <=> $y;
return $x <=> $y;
}
PHP
];
Expand Down
4 changes: 3 additions & 1 deletion tests/PhpScoper/SerializablePhpScoperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ public function scope(string $filePath, string $contents, string $prefix, array
static function () use ($scoper) {
return $scoper;
},
"Serialization of 'class@anonymous' is not allowed",
PHP_VERSION_ID < 80000
? "Serialization of 'class@anonymous' is not allowed"
: "Serialization of 'Humbug\PhpScoper\Scoper@anonymous' is not allowed",
];
})();
}
Expand Down

0 comments on commit 930484f

Please sign in to comment.