1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Alias dev-master/trunk/default to 9999999-dev instead of normalizing the version to that, fixes #8323

This commit is contained in:
Jordi Boggiano 2020-03-11 13:37:39 +01:00
parent 97e2a249e8
commit a7a975ec1c
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
21 changed files with 200 additions and 66 deletions

View file

@ -160,6 +160,8 @@ class RootPackageLoaderTest extends TestCase
$loader = new RootPackageLoader($manager, $config, null, new VersionGuesser($config, $executor, new VersionParser()));
$package = $loader->load(array('require' => array('foo/bar' => 'self.version')));
$this->assertEquals("9999999-dev", $package->getPrettyVersion());
$package = $package->getAliasOf();
$this->assertEquals("dev-master", $package->getPrettyVersion());
}