Skip to content

Commit

Permalink
Some tests failing on newer php
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Sep 10, 2024
1 parent feed814 commit 5bed579
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Integration/PackageToCheckTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ protected function createUpdater($directory)
if (version_compare(phpversion(), "7.3.0", "<")) {
self::expectException(ComposerUpdateProcessFailedException::class);
}
if (version_compare(phpversion(), "8.3.0", ">=")) {
self::expectException(ComposerUpdateProcessFailedException::class);
}
$updater = new Updater($directory, 'drupal/recaptcha');
$updater->setPackageToCheckHasUpdated($this->package);
return $updater;
Expand Down
3 changes: 3 additions & 0 deletions tests/Integration/RequireTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public function testEndToEnd()
if (version_compare(phpversion(), "8.0.0", "<")) {
$this->expectException(NotUpdatedException::class);
}
if (version_compare(phpversion(), "8.3.0", ">=")) {
self::expectException(NotUpdatedException::class);
}
parent::testEndToEnd();
}
}
3 changes: 3 additions & 0 deletions tests/Integration/UpdateSecondTryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public function testEndToEnd()
if (version_compare(phpversion(), "8.0.0", "<")) {
return;
}
if (version_compare(phpversion(), "8.3.0", ">=")) {
return;
}
parent::testEndToEnd();
}

Expand Down

0 comments on commit 5bed579

Please sign in to comment.