1
0
Fork 0
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:
Jordi Boggiano 2020-06-01 09:39:44 +02:00
parent 0a0291e913
commit 21e708f2c4
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
12 changed files with 29 additions and 52 deletions

View file

@ -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(