Skip to content

Commit

Permalink
Fix skipping tests on PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Dec 10, 2023
1 parent 1bd20b7 commit 13c6531
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Issues/MozartIssue124Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MozartIssue124Test extends IntegrationTestCase
*/
public function test_it_does_not_make_classname_replacement_inside_namespaced_file()
{
if (version_compare('8.1', phpversion(), '<=')) {
if (!version_compare('8.1', phpversion(), '<=')) {
$this->markTestSkipped("Package specified for test is not PHP 8.1 compatible. Running tests under PHP " . phpversion());
}

Expand Down Expand Up @@ -87,7 +87,7 @@ public function test_it_does_not_make_classname_replacement_inside_namespaced_fi
*/
public function test_it_does_not_prefix_function_argument_types_whose_classname_matches_the_namespace()
{
if (version_compare('8.1', phpversion(), '<=')) {
if (!version_compare('8.1', phpversion(), '<=')) {
$this->markTestSkipped("Package specified for test is not PHP 8.1 compatible. Running tests under PHP " . phpversion());
}

Expand Down Expand Up @@ -138,7 +138,7 @@ public function test_it_does_not_prefix_function_argument_types_whose_classname_
*/
public function testItDoesPrefixNamespacedExtends()
{
if (version_compare('8.1', phpversion(), '<=')) {
if (!version_compare('8.1', phpversion(), '<=')) {
$this->markTestSkipped("Package specified for test is not PHP 8.1 compatible. Running tests under PHP " . phpversion());
}

Expand Down

0 comments on commit 13c6531

Please sign in to comment.