2012-12-13 09:08:04 +00:00
|
|
|
--TEST--
|
|
|
|
Update with a package whitelist only updates those corresponding to the pattern
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{ "name": "vendor/Test-Package", "version": "2.0" },
|
|
|
|
{ "name": "vendor/NotMe", "version": "2.0" },
|
|
|
|
{ "name": "exact/Test-Package", "version": "2.0" },
|
|
|
|
{ "name": "notexact/TestPackage", "version": "2.0" },
|
|
|
|
{ "name": "all/Package1", "version": "2.0" },
|
|
|
|
{ "name": "all/Package2", "version": "2.0" },
|
2012-12-13 14:06:06 +00:00
|
|
|
{ "name": "another/another", "version": "2.0" },
|
|
|
|
{ "name": "no/regexp", "version": "2.0" }
|
2012-12-13 09:08:04 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"vendor/Test-Package": "*.*",
|
|
|
|
"vendor/NotMe": "*.*",
|
|
|
|
"exact/Test-Package": "*.*",
|
|
|
|
"notexact/TestPackage": "*.*",
|
|
|
|
"all/Package1": "*.*",
|
|
|
|
"all/Package2": "*.*",
|
2012-12-13 14:06:06 +00:00
|
|
|
"another/another": "*.*",
|
|
|
|
"no/regexp": "*.*"
|
2012-12-13 09:08:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{ "name": "vendor/Test-Package", "version": "1.0" },
|
|
|
|
{ "name": "vendor/NotMe", "version": "1.0" },
|
|
|
|
{ "name": "exact/Test-Package", "version": "1.0" },
|
|
|
|
{ "name": "notexact/TestPackage", "version": "1.0" },
|
|
|
|
{ "name": "all/Package1", "version": "1.0" },
|
|
|
|
{ "name": "all/Package2", "version": "1.0" },
|
2012-12-13 14:06:06 +00:00
|
|
|
{ "name": "another/another", "version": "1.0" },
|
|
|
|
{ "name": "no/regexp", "version": "1.0" }
|
2012-12-13 09:08:04 +00:00
|
|
|
]
|
2019-10-29 23:32:23 +00:00
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "name": "vendor/Test-Package", "version": "1.0" },
|
|
|
|
{ "name": "vendor/NotMe", "version": "1.0" },
|
|
|
|
{ "name": "exact/Test-Package", "version": "1.0" },
|
|
|
|
{ "name": "notexact/TestPackage", "version": "1.0" },
|
|
|
|
{ "name": "all/Package1", "version": "1.0" },
|
|
|
|
{ "name": "all/Package2", "version": "1.0" },
|
|
|
|
{ "name": "another/another", "version": "1.0" },
|
|
|
|
{ "name": "no/regexp", "version": "1.0" }
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "dev",
|
|
|
|
"stability-flags": [],
|
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
|
|
|
"platform": [],
|
|
|
|
"platform-dev": []
|
|
|
|
}
|
2012-12-13 09:08:04 +00:00
|
|
|
--RUN--
|
2012-12-13 14:06:06 +00:00
|
|
|
update vendor/Test* exact/Test-Package notexact/Test all/* no/reg?xp
|
2012-12-13 09:08:04 +00:00
|
|
|
--EXPECT--
|
2019-11-14 14:40:59 +00:00
|
|
|
Updating all/Package1 (1.0 => 2.0)
|
|
|
|
Updating all/Package2 (1.0 => 2.0)
|
|
|
|
Updating exact/Test-Package (1.0 => 2.0)
|
|
|
|
Updating vendor/Test-Package (1.0 => 2.0)
|