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:
parent
2c6a9aba32
commit
893fbfcb89
6 changed files with 59 additions and 4 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue