2012-05-23 09:06:45 +00:00
|
|
|
--TEST--
|
|
|
|
Aliases take precedence over default package even if default is selected
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{
|
|
|
|
"name": "a/req", "version": "dev-feature-foo",
|
|
|
|
"source": { "reference": "feat.f", "type": "git", "url": "" }
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "a/req", "version": "dev-master",
|
|
|
|
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
|
|
|
|
"source": { "reference": "forked", "type": "git", "url": "" }
|
2020-03-11 12:37:39 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "a/req", "version": "dev-master",
|
|
|
|
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
|
|
|
|
"source": { "reference": "master", "type": "git", "url": "" }
|
|
|
|
},
|
2012-05-23 09:06:45 +00:00
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
2012-05-24 21:29:08 +00:00
|
|
|
"require": { "a/req": "dev-master" }
|
2012-05-23 09:06:45 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "a/b", "version": "dev-master",
|
|
|
|
"require": { "a/req": "dev-master" }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/a": "dev-master",
|
|
|
|
"a/b": "dev-master",
|
|
|
|
"a/req": "dev-feature-foo as dev-master"
|
2012-07-04 12:22:09 +00:00
|
|
|
},
|
|
|
|
"minimum-stability": "dev"
|
2012-05-23 09:06:45 +00:00
|
|
|
}
|
2019-09-07 05:43:23 +00:00
|
|
|
--EXPECT-LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
|
|
|
"require": { "a/req": "dev-master" },
|
|
|
|
"type": "library"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "a/b", "version": "dev-master",
|
|
|
|
"require": { "a/req": "dev-master" },
|
|
|
|
"type": "library"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "a/req", "version": "dev-feature-foo",
|
|
|
|
"source": { "reference": "feat.f", "type": "git", "url": "" },
|
|
|
|
"type": "library"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [
|
|
|
|
{
|
|
|
|
"alias": "dev-master",
|
2020-03-11 12:37:39 +00:00
|
|
|
"alias_normalized": "dev-master",
|
2019-09-07 05:43:23 +00:00
|
|
|
"version": "dev-feature-foo",
|
|
|
|
"package": "a/req"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"minimum-stability": "dev",
|
|
|
|
"stability-flags": {
|
|
|
|
"a/a": 20,
|
|
|
|
"a/b": 20,
|
|
|
|
"a/req": 20
|
|
|
|
},
|
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
|
|
|
"platform": [],
|
|
|
|
"platform-dev": []
|
|
|
|
}
|
2012-05-27 22:11:18 +00:00
|
|
|
--RUN--
|
|
|
|
install
|
2012-05-23 09:06:45 +00:00
|
|
|
--EXPECT--
|
|
|
|
Installing a/req (dev-feature-foo feat.f)
|
2012-06-04 23:05:41 +00:00
|
|
|
Marking a/req (dev-master feat.f) as installed, alias of a/req (dev-feature-foo feat.f)
|
2012-05-23 09:06:45 +00:00
|
|
|
Installing a/a (dev-master)
|
2020-03-11 12:37:39 +00:00
|
|
|
Marking a/a (9999999-dev) as installed, alias of a/a (dev-master)
|
2012-06-04 23:05:41 +00:00
|
|
|
Installing a/b (dev-master)
|
2020-03-11 12:37:39 +00:00
|
|
|
Marking a/b (9999999-dev) as installed, alias of a/b (dev-master)
|