1
0
Fork 0
composer/tests/Composer/Test/DependencyResolver/Fixtures/poolbuilder/alias-with-reference.test

58 lines
1.0 KiB
Plaintext

--TEST--
Check root aliases get selected correctly
--ROOT--
{
"stability-flags": {
"a/aliased": "dev"
},
"aliases": [
{
"package": "a/aliased",
"version": "dev-master",
"alias": "1.0.0"
}
],
"references": {
"a/aliased": "abcd"
}
}
--REQUEST--
{
"require": {
"a/aliased": "dev-master",
"b/requirer": "*"
}
}
--FIXED--
[
]
--PACKAGES--
[
{
"name": "a/aliased", "version": "dev-master",
"source": { "reference": "orig", "type": "git", "url": "" },
"default-branch": true
},
{
"name": "a/aliased", "version": "1.0"
},
{
"name": "b/requirer", "version": "1.0.0",
"require": { "a/aliased": "1.0.0" },
"source": { "reference": "1.0.0", "type": "git", "url": "" }
}
]
--EXPECT--
[
"a/aliased-dev-master#abcd",
"a/aliased-1.0.0.0#abcd (alias of dev-master)",
"b/requirer-1.0.0.0#1.0.0",
"a/aliased-9999999-dev#abcd (alias of dev-master)"
]