1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/replaced-packages-should-no...

40 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-02-16 12:46:59 +00:00
--TEST--
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"
}
}
--LOCK--
{
"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,
2024-09-18 14:32:40 +00:00
"platform": {},
"platform-dev": {}
}
--RUN--
install
2015-02-16 12:46:59 +00:00
--EXPECT-EXIT-CODE--
2
2015-02-16 12:46:59 +00:00
--EXPECT--