2014-11-21 13:01:01 +00:00
|
|
|
--TEST--
|
|
|
|
Updates packages to their lowest stable version
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{ "name": "a/a", "version": "1.0.0-rc1" },
|
|
|
|
{ "name": "a/a", "version": "1.0.1" },
|
|
|
|
{ "name": "a/a", "version": "1.1.0" },
|
|
|
|
|
|
|
|
{ "name": "a/b", "version": "1.0.0" },
|
|
|
|
{ "name": "a/b", "version": "1.0.1" },
|
|
|
|
{ "name": "a/b", "version": "2.0.0" },
|
|
|
|
|
|
|
|
{ "name": "a/c", "version": "1.0.0" },
|
|
|
|
{ "name": "a/c", "version": "2.0.0" }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/a": "~1.0@dev",
|
|
|
|
"a/c": "2.*"
|
|
|
|
},
|
|
|
|
"require-dev": {
|
|
|
|
"a/b": "*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{ "name": "a/a", "version": "1.0.0-rc1" },
|
|
|
|
{ "name": "a/c", "version": "2.0.0" },
|
|
|
|
{ "name": "a/b", "version": "1.0.1" }
|
|
|
|
]
|
|
|
|
--RUN--
|
2014-12-02 08:18:44 +00:00
|
|
|
update --prefer-lowest --prefer-stable
|
2014-11-21 13:01:01 +00:00
|
|
|
--EXPECT--
|
2020-02-11 12:43:38 +00:00
|
|
|
Upgrading a/a (1.0.0-rc1 => 1.0.1)
|
2020-02-11 10:33:52 +00:00
|
|
|
Downgrading a/b (1.0.1 => 1.0.0)
|