2015-02-16 12:46:59 +00:00
|
|
|
--TEST--
|
2018-07-09 20:51:23 +00:00
|
|
|
Requiring a replaced package in a version, that is not provided by the replacing package, should result in a conflict, when installing from lock
|
2015-02-16 12:46:59 +00:00
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{ "name": "foo/original", "version": "1.0.0", "replace": {"foo/replaced": "1.0.0"} },
|
|
|
|
{ "name": "foo/replaced", "version": "1.0.0" },
|
|
|
|
{ "name": "foo/replaced", "version": "2.0.0" }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"foo/original": "1.0.0",
|
|
|
|
"foo/replaced": "2.0.0"
|
|
|
|
}
|
|
|
|
}
|
2018-07-09 20:51:23 +00:00
|
|
|
--LOCK--
|
2015-02-17 14:37:33 +00:00
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "name": "foo/original", "version": "1.0.0", "replace": {"foo/replaced": "1.0.0"}, "type": "library" },
|
|
|
|
{ "name": "foo/replaced", "version": "2.0.0", "type": "library" }
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "stable",
|
|
|
|
"stability-flags": {},
|
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
|
|
|
"platform": [],
|
|
|
|
"platform-dev": []
|
|
|
|
}
|
2018-07-09 20:51:23 +00:00
|
|
|
--RUN--
|
|
|
|
install
|
2015-02-16 12:46:59 +00:00
|
|
|
--EXPECT-EXIT-CODE--
|
2018-07-09 20:51:23 +00:00
|
|
|
2
|
2015-02-16 12:46:59 +00:00
|
|
|
--EXPECT--
|