1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/replace-priorities.test

34 lines
931 B
Plaintext
Raw Normal View History

--TEST--
Replace takes precedence only in higher priority repositories and if explicitly required
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{ "name": "forked", "version": "1.1.0", "replace": { "package2": "1.1.0" } }
]
},
{
"type": "package",
"package": [
{ "name": "package", "version": "1.0.0" },
{ "name": "package2", "version": "1.0.0" },
{ "name": "package3", "version": "1.0.0", "require": { "forked": "*" } },
{ "name": "hijacker", "version": "1.1.0", "replace": { "package": "1.1.0" } }
]
}
],
"require": {
"package": "1.*",
"package2": "1.*",
"package3": "1.*"
}
}
--RUN--
install
--EXPECT--
Installing package (1.0.0)
Installing forked (1.1.0)
Installing package3 (1.0.0)