From 51eb29137cc84d8161cc29de9d5d30a50f770788 Mon Sep 17 00:00:00 2001 From: James Titcumb Date: Mon, 7 Oct 2024 22:01:46 +0100 Subject: [PATCH] Updated to use test 2.0.1 ext --- test/integration/Command/DownloadCommandTest.php | 8 ++++---- .../ResolveDependencyWithComposerTest.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/integration/Command/DownloadCommandTest.php b/test/integration/Command/DownloadCommandTest.php index 07e836d..4d53247 100644 --- a/test/integration/Command/DownloadCommandTest.php +++ b/test/integration/Command/DownloadCommandTest.php @@ -46,12 +46,12 @@ public function setUp(): void public static function validVersionsList(): array { $versionsAndExpected = [ - [self::TEST_PACKAGE, self::TEST_PACKAGE . ':2.0.0'], - [self::TEST_PACKAGE . ':*', self::TEST_PACKAGE . ':2.0.0'], - [self::TEST_PACKAGE . ':^2.0', self::TEST_PACKAGE . ':2.0.0'], + [self::TEST_PACKAGE, self::TEST_PACKAGE . ':2.0.1'], + [self::TEST_PACKAGE . ':*', self::TEST_PACKAGE . ':2.0.1'], + [self::TEST_PACKAGE . ':^2.0', self::TEST_PACKAGE . ':2.0.1'], ]; - if (PHP_VERSION_ID >= 80300 && PHP_VERSION_ID <= 80400) { + if (PHP_VERSION_ID >= 80300 && PHP_VERSION_ID < 80400) { $versionsAndExpected[] = [self::TEST_PACKAGE . ':^1.0', self::TEST_PACKAGE . ':1.0.1']; $versionsAndExpected[] = [self::TEST_PACKAGE . ':1.0.1-alpha.3@alpha', self::TEST_PACKAGE . ':1.0.1-alpha.3']; $versionsAndExpected[] = [self::TEST_PACKAGE . ':~1.0.0@alpha', self::TEST_PACKAGE . ':1.0.1']; diff --git a/test/integration/DependencyResolver/ResolveDependencyWithComposerTest.php b/test/integration/DependencyResolver/ResolveDependencyWithComposerTest.php index b194a57..f367929 100644 --- a/test/integration/DependencyResolver/ResolveDependencyWithComposerTest.php +++ b/test/integration/DependencyResolver/ResolveDependencyWithComposerTest.php @@ -34,13 +34,13 @@ final class ResolveDependencyWithComposerTest extends TestCase public static function validVersionsList(): array { $versionsAndExpected = [ - [null, '2.0.0', self::DOWNLOAD_URL_ANY], - ['*', '2.0.0', self::DOWNLOAD_URL_ANY], + [null, '2.0.1', self::DOWNLOAD_URL_ANY], + ['*', '2.0.1', self::DOWNLOAD_URL_ANY], ['dev-main', 'dev-main', self::DOWNLOAD_URL_ANY], ['dev-main#769f906413d6d1e12152f6d34134cbcd347ca253', 'dev-main', self::DOWNLOAD_URL_1_0_1], ]; - if (PHP_VERSION_ID >= 80300 && PHP_VERSION_ID <= 80400) { + if (PHP_VERSION_ID >= 80300 && PHP_VERSION_ID <= 80300) { $versionsAndExpected[] = ['1.0.1-alpha.3@alpha', '1.0.1-alpha.3', self::DOWNLOAD_URL_1_0_1_ALPHA_3]; $versionsAndExpected[] = ['^1.0', '1.0.1', self::DOWNLOAD_URL_1_0_1]; $versionsAndExpected[] = ['^1.1.0@alpha', '1.1.0-beta.1', self::DOWNLOAD_URL_1_1_0_BETA_1];