Skip to content

Commit

Permalink
Updated to use test 2.0.1 ext
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrim committed Oct 7, 2024
1 parent aa73b1c commit 51eb291
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions test/integration/Command/DownloadCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 51eb291

Please sign in to comment.