mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
Remove upper bound PHP version checks from platform-check as there is not enough value added and it risks causing issues
This commit is contained in:
parent
0a0291e913
commit
21e708f2c4
12 changed files with 29 additions and 52 deletions
|
@ -1667,7 +1667,13 @@ EOF;
|
|||
|
||||
$this->generator->dump($this->config, $this->repository, $package, $this->im, 'composer', true, '_1');
|
||||
|
||||
$this->assertFileContentEquals(__DIR__ . '/Fixtures/platform/' . $expectedFixture . '.php', $this->vendorDir . '/composer/platform_check.php');
|
||||
if (null === $expectedFixture) {
|
||||
$this->assertFalse(file_exists($this->vendorDir . '/composer/platform_check.php'));
|
||||
$this->assertNotContains("require __DIR__ . '/platform_check.php';", file_get_contents($this->vendorDir.'/composer/autoload_real.php'));
|
||||
} else {
|
||||
$this->assertFileContentEquals(__DIR__ . '/Fixtures/platform/' . $expectedFixture . '.php', $this->vendorDir . '/composer/platform_check.php');
|
||||
$this->assertContains("require __DIR__ . '/platform_check.php';", file_get_contents($this->vendorDir.'/composer/autoload_real.php'));
|
||||
}
|
||||
}
|
||||
|
||||
public function platformCheckProvider()
|
||||
|
@ -1687,7 +1693,7 @@ EOF;
|
|||
array(
|
||||
new Link('a', 'php', $versionParser->parseConstraints('< 8')),
|
||||
),
|
||||
'no_php_lower_bound'
|
||||
null
|
||||
),
|
||||
'No PHP upper bound' => array(
|
||||
array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue