2012-08-31 22:30:48 +00:00
|
|
|
--TEST--
|
|
|
|
Installs a dev package from lock using dist
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{
|
|
|
|
"name": "a/a",
|
|
|
|
"version": "dev-master",
|
|
|
|
"version_normalized": "9999999-dev",
|
|
|
|
"dist": {
|
|
|
|
"type": "zip",
|
|
|
|
"url": "http://www.example.com/dist.zip",
|
|
|
|
"reference": "459720ff3b74ee0c0d159277c6f2f5df89d8a4f6"
|
2020-06-19 13:35:09 +00:00
|
|
|
},
|
|
|
|
"default-branch": true
|
2012-08-31 22:30:48 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/a": "dev-master"
|
|
|
|
},
|
|
|
|
"minimum-stability": "dev"
|
|
|
|
}
|
|
|
|
--RUN--
|
2020-06-19 15:56:13 +00:00
|
|
|
install
|
2012-08-31 22:30:48 +00:00
|
|
|
--EXPECT-LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{
|
2012-09-27 16:44:53 +00:00
|
|
|
"name": "a/a",
|
2012-08-31 22:30:48 +00:00
|
|
|
"version": "dev-master",
|
2012-09-27 16:44:53 +00:00
|
|
|
"dist": {
|
|
|
|
"type": "zip",
|
|
|
|
"url": "http://www.example.com/dist.zip",
|
2019-02-10 12:07:42 +00:00
|
|
|
"reference": "459720ff3b74ee0c0d159277c6f2f5df89d8a4f6"
|
2012-09-27 16:44:53 +00:00
|
|
|
},
|
2020-06-19 13:35:09 +00:00
|
|
|
"type": "library",
|
|
|
|
"default-branch": true
|
2012-08-31 22:30:48 +00:00
|
|
|
}
|
|
|
|
],
|
2013-03-07 08:40:22 +00:00
|
|
|
"packages-dev": [],
|
2012-08-31 22:30:48 +00:00
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "dev",
|
|
|
|
"stability-flags": {
|
|
|
|
"a/a": 20
|
2013-03-03 19:05:46 +00:00
|
|
|
},
|
2014-07-07 17:51:00 +00:00
|
|
|
"prefer-stable": false,
|
2014-12-13 22:56:15 +00:00
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2012-08-31 22:30:48 +00:00
|
|
|
}
|
|
|
|
--EXPECT--
|
|
|
|
Installing a/a (dev-master)
|
2020-03-11 12:37:39 +00:00
|
|
|
Marking a/a (9999999-dev) as installed, alias of a/a (dev-master)
|