2012-09-14 15:42:12 +00:00
|
|
|
--TEST--
|
|
|
|
Installing an old alias that doesn't exist anymore from a lock is possible
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
|
|
|
"extra": { "branch-alias": { "dev-master": "2.2.x-dev" } },
|
|
|
|
"source": { "reference": "master", "type": "git", "url": "" }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/a": "2.1.*"
|
|
|
|
},
|
|
|
|
"minimum-stability": "dev"
|
|
|
|
}
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master", "version_normalized": "9999999-dev",
|
|
|
|
"extra": { "branch-alias": { "dev-master": "2.1.x-dev" } },
|
|
|
|
"source": { "reference": "oldmaster", "type": "git", "url": "" },
|
|
|
|
"type": "library"
|
|
|
|
}
|
|
|
|
],
|
2019-10-29 23:32:23 +00:00
|
|
|
"packages-dev": [],
|
2012-09-14 15:42:12 +00:00
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "dev",
|
2024-09-18 14:32:40 +00:00
|
|
|
"stability-flags": {},
|
2014-12-13 22:56:15 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false
|
2012-09-14 15:42:12 +00:00
|
|
|
}
|
|
|
|
--RUN--
|
|
|
|
install
|
|
|
|
--EXPECT--
|
|
|
|
Installing a/a (dev-master oldmaster)
|
|
|
|
Marking a/a (2.1.x-dev oldmaster) as installed, alias of a/a (dev-master oldmaster)
|