2019-11-07 20:18:09 +00:00
|
|
|
--TEST--
|
|
|
|
A composer update should remove unused locked dependencies from the lock file and remove unused installed deps from disk
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{ "name": "a/a", "version": "1.0.0" },
|
|
|
|
{ "name": "b/b", "version": "1.0.0" }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/a": "*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "name": "a/a", "version": "1.0.0" },
|
|
|
|
{ "name": "b/b", "version": "1.0.0" }
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "stable",
|
2024-09-18 14:32:40 +00:00
|
|
|
"stability-flags": {},
|
2019-11-07 20:18:09 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2019-11-07 20:18:09 +00:00
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{ "name": "a/a", "version": "1.0.0" },
|
|
|
|
{ "name": "b/b", "version": "1.0.0" },
|
|
|
|
{ "name": "c/c", "version": "1.0.0" }
|
|
|
|
]
|
|
|
|
--RUN--
|
|
|
|
update
|
|
|
|
--EXPECT-LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "name": "a/a", "version": "1.0.0", "type": "library" }
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "stable",
|
2024-09-18 14:32:40 +00:00
|
|
|
"stability-flags": {},
|
2019-11-07 20:18:09 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2019-11-07 20:18:09 +00:00
|
|
|
}
|
|
|
|
--EXPECT-OUTPUT--
|
|
|
|
Loading composer repositories with package information
|
|
|
|
Updating dependencies
|
|
|
|
Lock file operations: 0 installs, 0 updates, 1 removal
|
2020-03-11 15:44:08 +00:00
|
|
|
- Removing b/b (1.0.0)
|
2019-11-07 20:18:09 +00:00
|
|
|
Writing lock file
|
|
|
|
Installing dependencies from lock file (including require-dev)
|
|
|
|
Package operations: 0 installs, 0 updates, 2 removals
|
|
|
|
Generating autoload files
|
|
|
|
|
|
|
|
--EXPECT--
|
2020-03-12 07:12:12 +00:00
|
|
|
Removing c/c (1.0.0)
|
|
|
|
Removing b/b (1.0.0)
|