mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Support aliases for numeric branches. Fixes #3461
This commit is contained in:
parent
2a1a963b00
commit
7bb85ff21e
8 changed files with 102 additions and 5 deletions
|
@ -140,6 +140,7 @@ class ValidatingArrayLoaderTest extends \PHPUnit_Framework_TestCase
|
|||
'branch-alias' => array(
|
||||
'dev-master' => '2.0-dev',
|
||||
'dev-old' => '1.0.x-dev',
|
||||
'3.x-dev' => '3.1.x-dev'
|
||||
),
|
||||
),
|
||||
'bin' => array(
|
||||
|
@ -324,6 +325,20 @@ class ValidatingArrayLoaderTest extends \PHPUnit_Framework_TestCase
|
|||
),
|
||||
false
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'name' => 'foo/bar',
|
||||
'extra' => array(
|
||||
'branch-alias' => array(
|
||||
'5.x-dev' => '3.1.x-dev'
|
||||
),
|
||||
)
|
||||
),
|
||||
array(
|
||||
'extra.branch-alias.5.x-dev : the target branch (3.1.x-dev) is not a valid numeric alias for this version'
|
||||
),
|
||||
false
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue