2012-05-13 20:43:07 +00:00
|
|
|
--TEST--
|
|
|
|
Aliases take precedence over default package
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{
|
|
|
|
"name": "a/c", "version": "dev-feature-foo",
|
|
|
|
"source": { "reference": "feat.f", "type": "git", "url": "" }
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "a/b", "version": "dev-master",
|
|
|
|
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
|
|
|
|
"source": { "reference": "forked", "type": "git", "url": "" }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
|
|
|
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
|
|
|
|
"source": { "reference": "master", "type": "git", "url": "" },
|
|
|
|
"require": {
|
|
|
|
"a/b": "dev-master",
|
|
|
|
"a/c": "dev-master"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "a/b", "version": "dev-master",
|
|
|
|
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
|
|
|
|
"source": { "reference": "master", "type": "git", "url": "" }
|
|
|
|
},
|
|
|
|
{ "name": "a/c", "version": "dev-master" }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/a": "1.*",
|
|
|
|
"a/b": "1.*",
|
|
|
|
"a/c": "dev-feature-foo as dev-master"
|
2012-07-04 12:22:09 +00:00
|
|
|
},
|
|
|
|
"minimum-stability": "dev"
|
2012-05-13 20:43:07 +00:00
|
|
|
}
|
2012-05-27 22:11:18 +00:00
|
|
|
--RUN--
|
|
|
|
install
|
2012-05-13 20:43:07 +00:00
|
|
|
--EXPECT--
|
2012-06-04 23:05:41 +00:00
|
|
|
Installing a/c (dev-feature-foo feat.f)
|
2012-05-24 21:29:08 +00:00
|
|
|
Marking a/c (dev-master feat.f) as installed, alias of a/c (dev-feature-foo feat.f)
|
2012-06-04 23:05:41 +00:00
|
|
|
Installing a/b (dev-master forked)
|
2019-09-07 05:53:31 +00:00
|
|
|
Marking a/b (1.0.x-dev forked) as installed, alias of a/b (dev-master forked)
|
2012-05-13 20:43:07 +00:00
|
|
|
Installing a/a (dev-master master)
|
|
|
|
Marking a/a (1.0.x-dev master) as installed, alias of a/a (dev-master master)
|