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

Add support for "extra.branch-version"

This commit is contained in:
Nicolas Grekas 2020-10-08 12:33:16 +02:00
parent 2c6a9aba32
commit 893fbfcb89
6 changed files with 59 additions and 4 deletions

View file

@ -201,4 +201,15 @@ class RootPackageLoaderTest extends TestCase
$this->assertEquals("dev-latest-production", $package->getPrettyVersion());
}
public function testLoadExtraBranchVersion()
{
$package = $this->loadPackage(array(
'extra' => array(
'branch-version' => '1.2',
),
));
$this->assertEquals('1.2.x-dev', $package->getPrettyVersion());
}
}