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

34 lines
961 B
Plaintext
Raw Normal View History

--TEST--
Replace takes precedence only in higher priority repositories and if explicitly required
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
2020-03-11 08:34:40 +00:00
{ "name": "forked/pkg", "version": "1.1.0", "replace": { "package/2": "1.1.0" } }
]
},
{
"type": "package",
"package": [
2020-03-11 08:34:40 +00:00
{ "name": "package/1", "version": "1.0.0" },
{ "name": "package/2", "version": "1.0.0" },
{ "name": "package/3", "version": "1.0.0", "require": { "forked/pkg": "*" } },
{ "name": "hijacker/pkg", "version": "1.1.0", "replace": { "package/1": "1.1.0" } }
]
}
],
"require": {
2020-03-11 08:34:40 +00:00
"package/1": "1.*",
"package/2": "1.*",
"package/3": "1.*"
}
}
--RUN--
install
--EXPECT--
2020-03-11 08:34:40 +00:00
Installing package/1 (1.0.0)
Installing forked/pkg (1.1.0)
Installing package/3 (1.0.0)