59 lines
1.5 KiB
Plaintext
59 lines
1.5 KiB
Plaintext
--TEST--
|
|
Verify that partial updates warn about using patterns in the argument which have no matches
|
|
--COMPOSER--
|
|
{
|
|
"repositories": [
|
|
{
|
|
"type": "package",
|
|
"package": [
|
|
{ "name": "a/a", "version": "1.0.0" },
|
|
{ "name": "b/b", "version": "1.0.0" },
|
|
{ "name": "b/b", "version": "1.1.0" }
|
|
]
|
|
}
|
|
],
|
|
"require": {
|
|
"a/a": "~1.0",
|
|
"b/b": "~1.0"
|
|
}
|
|
}
|
|
|
|
--INSTALLED--
|
|
[
|
|
{ "name": "a/a", "version": "1.0.0" },
|
|
{ "name": "b/b", "version": "1.0.0" }
|
|
]
|
|
|
|
--LOCK--
|
|
{
|
|
"packages": [
|
|
{ "name": "a/a", "version": "1.0.0" },
|
|
{ "name": "b/b", "version": "1.0.0" }
|
|
],
|
|
"packages-dev": [],
|
|
"aliases": [],
|
|
"minimum-stability": "dev",
|
|
"stability-flags": {},
|
|
"prefer-stable": false,
|
|
"prefer-lowest": false,
|
|
"platform": {},
|
|
"platform-dev": {}
|
|
}
|
|
--RUN--
|
|
update b/b foo/bar baz/* --with-dependencies
|
|
|
|
--EXPECT-OUTPUT--
|
|
Loading composer repositories with package information
|
|
<warning>Package "foo/bar" listed for update is not locked.</warning>
|
|
<warning>Pattern "baz/*" listed for update does not match any locked packages.</warning>
|
|
Updating dependencies
|
|
Lock file operations: 0 installs, 1 update, 0 removals
|
|
- Upgrading b/b (1.0.0 => 1.1.0)
|
|
Writing lock file
|
|
Installing dependencies from lock file (including require-dev)
|
|
Package operations: 0 installs, 1 update, 0 removals
|
|
Generating autoload files
|
|
|
|
--EXPECT--
|
|
Upgrading b/b (1.0.0 => 1.1.0)
|