2012-08-27 10:03:07 +00:00
|
|
|
--TEST--
|
|
|
|
Updating a dev package selects its newest version but no providers
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{
|
|
|
|
"name": "a/replacer", "version": "dev-master",
|
|
|
|
"source": { "reference": "wrong", "url": "", "type": "git" },
|
|
|
|
"replace": {
|
|
|
|
"a/installed": "dev-master"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "a/installed", "version": "dev-master",
|
|
|
|
"source": { "reference": "newref", "url": "", "type": "git" }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/installed": "dev-master"
|
|
|
|
},
|
|
|
|
"minimum-stability": "dev"
|
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "a/installed", "version": "dev-master",
|
|
|
|
"source": { "reference": "oldref", "url": "", "type": "git" }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
--RUN--
|
|
|
|
update
|
|
|
|
--EXPECT--
|
2019-11-14 14:40:59 +00:00
|
|
|
Updating a/installed (dev-master oldref => dev-master newref)
|