From e125c0c4a2d61323d15ce244230fe7226edc5755 Mon Sep 17 00:00:00 2001 From: Eirik Stanghelle Morland Date: Wed, 18 Sep 2024 21:13:24 +0200 Subject: [PATCH] Ignore tests for releases (#56) --- .gitattributes | 1 + tests/Integration/PackageToCheckTest.php | 2 +- tests/Integration/RequireTest.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..18e14aa --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +/tests export-ignore diff --git a/tests/Integration/PackageToCheckTest.php b/tests/Integration/PackageToCheckTest.php index a161597..c042233 100644 --- a/tests/Integration/PackageToCheckTest.php +++ b/tests/Integration/PackageToCheckTest.php @@ -15,7 +15,7 @@ protected function createUpdater($directory) if (version_compare(phpversion(), "7.3.0", "<")) { self::expectException(ComposerUpdateProcessFailedException::class); } - if (version_compare(phpversion(), "8.3.0", ">=")) { + if (version_compare(phpversion(), "8.3.99", ">=")) { self::expectException(ComposerUpdateProcessFailedException::class); } $updater = new Updater($directory, 'drupal/recaptcha'); diff --git a/tests/Integration/RequireTest.php b/tests/Integration/RequireTest.php index d73360d..d253ce1 100644 --- a/tests/Integration/RequireTest.php +++ b/tests/Integration/RequireTest.php @@ -16,7 +16,7 @@ public function testEndToEnd() if (version_compare(phpversion(), "8.0.0", "<")) { $this->expectException(NotUpdatedException::class); } - if (version_compare(phpversion(), "8.3.0", ">=")) { + if (version_compare(phpversion(), "8.3.99", ">=")) { self::expectException(NotUpdatedException::class); } parent::testEndToEnd();