2012-07-11 11:00:41 +00:00
|
|
|
--TEST--
|
2014-05-23 13:22:53 +00:00
|
|
|
Replace takes precedence only in higher priority repositories and if explicitly required
|
2012-07-11 11:00:41 +00:00
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
2012-07-11 12:04:54 +00:00
|
|
|
{ "name": "forked", "version": "1.1.0", "replace": { "package2": "1.1.0" } }
|
2012-07-11 11:00:41 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{ "name": "package", "version": "1.0.0" },
|
|
|
|
{ "name": "package2", "version": "1.0.0" },
|
2014-05-23 13:22:53 +00:00
|
|
|
{ "name": "package3", "version": "1.0.0", "require": { "forked": "*" } },
|
2012-07-11 12:04:54 +00:00
|
|
|
{ "name": "hijacker", "version": "1.1.0", "replace": { "package": "1.1.0" } }
|
2012-07-11 11:00:41 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"package": "1.*",
|
2014-05-23 13:22:53 +00:00
|
|
|
"package2": "1.*",
|
|
|
|
"package3": "1.*"
|
2012-07-11 11:00:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
--RUN--
|
|
|
|
install
|
|
|
|
--EXPECT--
|
|
|
|
Installing package (1.0.0)
|
|
|
|
Installing forked (1.1.0)
|
2014-05-23 13:22:53 +00:00
|
|
|
Installing package3 (1.0.0)
|