Skip to content

Commit

Permalink
Fix php7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Feb 7, 2024
1 parent df8f9f0 commit 67d80e1
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions tests/Composer/Test/Command/BaseDependencyCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ public static function caseWhyProvider(): Generator
<<<OUTPUT
__root__ - requires vendor1/package3 (2.3.0)
vendor1/package2 2.3.0 requires vendor1/package3 (^1)
OUTPUT,
OUTPUT
,
0
];

Expand All @@ -327,7 +328,8 @@ public static function caseWhyProvider(): Generator
`--vendor1/package2 2.3.0 (requires vendor1/package3 ^1)
|--__root__ (requires vendor1/package2 1.3.0)
`--vendor1/package1 1.3.0 (requires vendor1/package2 ^2)
OUTPUT,
OUTPUT
,
0
];

Expand All @@ -338,7 +340,8 @@ public static function caseWhyProvider(): Generator
vendor1/package1 1.3.0 requires vendor1/package2 (^2)
__root__ - requires vendor1/package3 (2.3.0)
vendor1/package2 2.3.0 requires vendor1/package3 (^1)
OUTPUT,
OUTPUT
,
0
];

Expand Down Expand Up @@ -431,7 +434,8 @@ public function caseWhyNotProvider(): Generator
Package "vendor1/package1" could not be found with constraint "3.*", results below will most likely be incomplete.
__root__ - requires vendor1/package1 (1.*)
Not finding what you were looking for? Try calling `composer require "vendor1/package1:3.*" --dry-run` to get another view on the problem.
OUTPUT,
OUTPUT
,
1
];

Expand All @@ -441,7 +445,8 @@ public function caseWhyNotProvider(): Generator
Package "vendor1/package1" could not be found with constraint "^1.4", results below will most likely be incomplete.
There is no installed package depending on "vendor1/package1" in versions not matching ^1.4
Not finding what you were looking for? Try calling `composer require "vendor1/package1:^1.4" --dry-run` to get another view on the problem.
OUTPUT,
OUTPUT
,
0
];

Expand All @@ -450,7 +455,8 @@ public function caseWhyNotProvider(): Generator
<<<OUTPUT
There is no installed package depending on "vendor1/package1" in versions not matching ^1.3
Not finding what you were looking for? Try calling `composer require "vendor1/package1:^1.3" --dry-run` to get another view on the problem.
OUTPUT,
OUTPUT
,
0
];

Expand All @@ -459,7 +465,8 @@ public function caseWhyNotProvider(): Generator
<<<OUTPUT
vendor2/package2 1.0.0 requires vendor2/package3 (1.4.*)
Not finding what you were looking for? Try calling `composer update "vendor2/package3:1.5.0" --dry-run` to get another view on the problem.
OUTPUT,
OUTPUT
,
1
];
}
Expand Down

0 comments on commit 67d80e1

Please sign in to comment.