2015-02-12 23:37:18 +00:00
|
|
|
--TEST--
|
|
|
|
The locked version will not get overwritten by an install
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{ "name": "foo/bar", "version": "1.0.0" },
|
|
|
|
{ "name": "foo/baz", "version": "1.0.0" },
|
|
|
|
{ "name": "foo/baz", "version": "2.0.0" }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"foo/bar": "2.0.0",
|
|
|
|
"foo/baz": "2.0.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "name": "foo/bar", "version": "1.0.0" },
|
|
|
|
{ "name": "foo/baz", "version": "2.0.0" }
|
|
|
|
],
|
2019-10-29 23:40:36 +00:00
|
|
|
"packages-dev": [],
|
2015-02-12 23:37:18 +00:00
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "stable",
|
|
|
|
"stability-flags": [],
|
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false
|
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{ "name": "foo/bar", "version": "1.0.0" },
|
|
|
|
{ "name": "foo/baz", "version": "1.0.0" }
|
|
|
|
]
|
|
|
|
--RUN--
|
|
|
|
install
|
|
|
|
--EXPECT--
|
2020-02-11 12:43:38 +00:00
|
|
|
Upgrading foo/baz (1.0.0 => 2.0.0)
|