From e5af569bfcc6c7e8ab0345f9d83c9bb4d1b1f3f5 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 18 Sep 2024 16:32:40 +0200 Subject: [PATCH] Fix tests --- .../functional/installed-versions2/composer.lock | 6 +++--- .../composer.lock | 6 +++--- .../Test/Fixtures/installer/alias-in-lock.test | 6 +++--- .../Test/Fixtures/installer/alias-in-lock2.test | 12 ++++++------ .../Fixtures/installer/alias-solver-problems.test | 6 +++--- .../Fixtures/installer/alias-solver-problems2.test | 6 +++--- .../Fixtures/installer/alias-with-reference.test | 4 ++-- .../installer/aliased-priority-conflicting.test | 4 ++-- .../Fixtures/installer/aliases-with-require-dev.test | 4 ++-- ...ict-with-alias-in-lock-does-prevents-install.test | 4 ++-- .../conflict-with-alias-prevents-update.test | 4 ++-- ...dependencies-option-dont-recommend-to-use-it.test | 6 +++--- .../Fixtures/installer/github-issues-4795-2.test | 4 ++-- .../Test/Fixtures/installer/github-issues-4795.test | 6 +++--- .../Fixtures/installer/install-dev-using-dist.test | 4 ++-- .../install-from-incomplete-lock-with-ignore.test | 2 +- .../installer/install-from-incomplete-lock.test | 2 +- .../installer/install-from-lock-removes-package.test | 2 +- .../installer/install-missing-alias-from-lock.test | 2 +- .../load-replaced-package-if-replacer-dropped.test | 7 +++---- .../installer/outdated-lock-file-fails-install.test | 6 +++--- ...dated-lock-file-with-new-platform-reqs-fails.test | 4 ++-- ...l-update-always-updates-symlinked-path-repos.test | 4 ++-- ...-update-downgrades-non-allow-listed-unstable.test | 4 ++-- ...reference-from-lock-for-non-updated-packages.test | 12 ++++++------ .../partial-update-from-lock-with-root-alias.test | 12 ++++++------ .../Fixtures/installer/partial-update-from-lock.test | 10 +++++----- ...rtial-update-installs-from-lock-even-missing.test | 12 ++++++------ ...eps-older-dep-if-still-required-with-provide.test | 10 +++++----- ...ial-update-keeps-older-dep-if-still-required.test | 10 +++++----- ...ial-update-loads-root-aliases-for-path-repos.test | 4 ++-- .../partial-update-with-dependencies-provide.test | 10 +++++----- .../partial-update-with-dependencies-replace.test | 10 +++++----- .../partial-update-with-deps-warns-root.test | 10 +++++----- .../partial-update-with-symlinked-path-repos.test | 4 ++-- .../installer/platform-ext-solver-problems.test | 6 +++--- .../Fixtures/installer/problems-reduce-versions.test | 7 +++---- .../provider-dev-require-can-satisfy-require.test | 6 +++--- .../installer/remove-deletes-unused-deps.test | 2 +- ...es-nothing-if-removal-requires-update-of-dep.test | 2 +- ...d-not-be-installed-when-installing-from-lock.test | 4 ++-- .../root-alias-change-with-circular-dep.test | 6 +++--- .../root-alias-gets-loaded-for-locked-pkgs.test | 6 +++--- ...t-requirements-do-not-affect-locked-versions.test | 2 +- .../Test/Fixtures/installer/solver-problems.test | 6 +++--- .../Test/Fixtures/installer/suggest-prod.test | 6 +++--- .../Test/Fixtures/installer/update-alias-lock.test | 6 +++--- .../Test/Fixtures/installer/update-alias-lock2.test | 8 ++++---- .../installer/update-allow-list-locked-require.test | 6 +++--- .../installer/update-allow-list-minimal-changes.test | 6 +++--- ...te-allow-list-patterns-with-all-dependencies.test | 6 +++--- ...e-allow-list-patterns-with-root-dependencies.test | 6 +++--- .../installer/update-allow-list-patterns.test | 6 +++--- .../installer/update-allow-list-reads-lock.test | 2 +- .../installer/update-allow-list-removes-unused.test | 6 +++--- .../update-allow-list-require-new-replace.test | 6 +++--- ...pdate-allow-list-warns-non-existing-patterns.test | 6 +++--- .../update-allow-list-with-dependencies-alias.test | 10 +++++----- ...allow-list-with-dependencies-new-requirement.test | 6 +++--- ...with-dependencies-require-new-replace-mutual.test | 6 +++--- ...w-list-with-dependencies-require-new-replace.test | 6 +++--- ...ate-allow-list-with-dependencies-require-new.test | 6 +++--- .../Test/Fixtures/installer/update-allow-list.test | 6 +++--- .../Test/Fixtures/installer/update-changes-url.test | 8 ++++---- .../update-dev-packages-updates-repo-url.test | 12 ++++++------ .../installer/update-mirrors-changes-url.test | 8 ++++---- .../installer/update-mirrors-fails-with-new-req.test | 12 ++++++------ .../installer/update-no-dev-still-resolves-dev.test | 4 ++-- .../Test/Fixtures/installer/update-no-install.test | 6 +++--- ...age-present-in-lock-but-not-at-all-in-remote.test | 6 +++--- ...-lock-but-not-in-remote-due-to-min-stability.test | 6 +++--- ...te-package-present-in-lock-but-not-in-remote.test | 6 +++--- ...-repo-prio-but-not-main-due-to-min-stability.test | 6 +++--- .../update-picks-up-change-of-vcs-type.test | 12 ++++++------ .../installer/update-removes-unused-locked-dep.test | 12 ++++++------ .../Fixtures/installer/update-syncs-outdated.test | 6 +++--- .../installer/update-to-empty-from-blank.test | 6 +++--- .../installer/update-to-empty-from-locked.test | 12 ++++++------ .../installer/update-with-all-dependencies.test | 6 +++--- .../updating-dev-from-lock-removes-old-deps.test | 2 +- .../updating-dev-updates-url-and-reference.test | 4 ++-- tests/Composer/Test/InstallerTest.php | 5 +++++ tests/Composer/Test/Package/LockerTest.php | 6 +++--- 83 files changed, 262 insertions(+), 259 deletions(-) diff --git a/tests/Composer/Test/Fixtures/functional/installed-versions2/composer.lock b/tests/Composer/Test/Fixtures/functional/installed-versions2/composer.lock index 825f8a496..f78da5591 100644 --- a/tests/Composer/Test/Fixtures/functional/installed-versions2/composer.lock +++ b/tests/Composer/Test/Fixtures/functional/installed-versions2/composer.lock @@ -231,10 +231,10 @@ "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [], + "platform": {}, + "platform-dev": {}, "plugin-api-version": "2.0.0" } diff --git a/tests/Composer/Test/Fixtures/functional/plugin-autoloading-only-loads-dependencies/composer.lock b/tests/Composer/Test/Fixtures/functional/plugin-autoloading-only-loads-dependencies/composer.lock index 0beb2f5a7..6499f4b92 100644 --- a/tests/Composer/Test/Fixtures/functional/plugin-autoloading-only-loads-dependencies/composer.lock +++ b/tests/Composer/Test/Fixtures/functional/plugin-autoloading-only-loads-dependencies/composer.lock @@ -29,10 +29,10 @@ "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [], + "platform": {}, + "platform-dev": {}, "plugin-api-version": "2.2.0" } diff --git a/tests/Composer/Test/Fixtures/installer/alias-in-lock.test b/tests/Composer/Test/Fixtures/installer/alias-in-lock.test index 49cd1519f..deb9cb2f1 100644 --- a/tests/Composer/Test/Fixtures/installer/alias-in-lock.test +++ b/tests/Composer/Test/Fixtures/installer/alias-in-lock.test @@ -57,11 +57,11 @@ update "alias_normalized": "3.0.3.0" }], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Installing a/aliased2 (3.0.2) diff --git a/tests/Composer/Test/Fixtures/installer/alias-in-lock2.test b/tests/Composer/Test/Fixtures/installer/alias-in-lock2.test index c781ae32f..92b1323d6 100644 --- a/tests/Composer/Test/Fixtures/installer/alias-in-lock2.test +++ b/tests/Composer/Test/Fixtures/installer/alias-in-lock2.test @@ -35,11 +35,11 @@ Newly defined root aliases end up in lock file only if the package is updated "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update a/aliased @@ -63,11 +63,11 @@ update a/aliased "alias_normalized": "3.0.3.0" }], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Installing a/aliased (3.0.2) diff --git a/tests/Composer/Test/Fixtures/installer/alias-solver-problems.test b/tests/Composer/Test/Fixtures/installer/alias-solver-problems.test index 16e93b0fb..2b1a46e78 100644 --- a/tests/Composer/Test/Fixtures/installer/alias-solver-problems.test +++ b/tests/Composer/Test/Fixtures/installer/alias-solver-problems.test @@ -26,11 +26,11 @@ Test the error output of solver problems with dev-master aliases. "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- diff --git a/tests/Composer/Test/Fixtures/installer/alias-solver-problems2.test b/tests/Composer/Test/Fixtures/installer/alias-solver-problems2.test index f32aa31fd..c5e3e3b5e 100644 --- a/tests/Composer/Test/Fixtures/installer/alias-solver-problems2.test +++ b/tests/Composer/Test/Fixtures/installer/alias-solver-problems2.test @@ -24,11 +24,11 @@ Test the error output of solver problems with dev-master aliases. "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- diff --git a/tests/Composer/Test/Fixtures/installer/alias-with-reference.test b/tests/Composer/Test/Fixtures/installer/alias-with-reference.test index f7e51e5f9..f6b35ebe6 100644 --- a/tests/Composer/Test/Fixtures/installer/alias-with-reference.test +++ b/tests/Composer/Test/Fixtures/installer/alias-with-reference.test @@ -55,8 +55,8 @@ update }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Installing a/aliased (dev-master abcd) diff --git a/tests/Composer/Test/Fixtures/installer/aliased-priority-conflicting.test b/tests/Composer/Test/Fixtures/installer/aliased-priority-conflicting.test index b409a5cfc..3c8b613d5 100644 --- a/tests/Composer/Test/Fixtures/installer/aliased-priority-conflicting.test +++ b/tests/Composer/Test/Fixtures/installer/aliased-priority-conflicting.test @@ -80,8 +80,8 @@ Aliases take precedence over default package even if default is selected }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- install diff --git a/tests/Composer/Test/Fixtures/installer/aliases-with-require-dev.test b/tests/Composer/Test/Fixtures/installer/aliases-with-require-dev.test index 1500d156b..805428165 100644 --- a/tests/Composer/Test/Fixtures/installer/aliases-with-require-dev.test +++ b/tests/Composer/Test/Fixtures/installer/aliases-with-require-dev.test @@ -78,8 +78,8 @@ update }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Installing a/aliased (dev-next) diff --git a/tests/Composer/Test/Fixtures/installer/conflict-with-alias-in-lock-does-prevents-install.test b/tests/Composer/Test/Fixtures/installer/conflict-with-alias-in-lock-does-prevents-install.test index 6009d64cf..ec77808d2 100644 --- a/tests/Composer/Test/Fixtures/installer/conflict-with-alias-in-lock-does-prevents-install.test +++ b/tests/Composer/Test/Fixtures/installer/conflict-with-alias-in-lock-does-prevents-install.test @@ -34,8 +34,8 @@ Test that conflict with a branch alias in the lock file leads to an error on ins }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- install diff --git a/tests/Composer/Test/Fixtures/installer/conflict-with-alias-prevents-update.test b/tests/Composer/Test/Fixtures/installer/conflict-with-alias-prevents-update.test index 74b61304e..efe40a9fd 100644 --- a/tests/Composer/Test/Fixtures/installer/conflict-with-alias-prevents-update.test +++ b/tests/Composer/Test/Fixtures/installer/conflict-with-alias-prevents-update.test @@ -36,8 +36,8 @@ update }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Installing some/dep (1.2.x-dev) diff --git a/tests/Composer/Test/Fixtures/installer/conflict-with-all-dependencies-option-dont-recommend-to-use-it.test b/tests/Composer/Test/Fixtures/installer/conflict-with-all-dependencies-option-dont-recommend-to-use-it.test index f1c5714a5..b24c04334 100644 --- a/tests/Composer/Test/Fixtures/installer/conflict-with-all-dependencies-option-dont-recommend-to-use-it.test +++ b/tests/Composer/Test/Fixtures/installer/conflict-with-all-dependencies-option-dont-recommend-to-use-it.test @@ -24,11 +24,11 @@ Verify that a conflict with all dependencies option enabled don't recommend to u "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- diff --git a/tests/Composer/Test/Fixtures/installer/github-issues-4795-2.test b/tests/Composer/Test/Fixtures/installer/github-issues-4795-2.test index 62bda3d7d..a0c8452b9 100644 --- a/tests/Composer/Test/Fixtures/installer/github-issues-4795-2.test +++ b/tests/Composer/Test/Fixtures/installer/github-issues-4795-2.test @@ -45,8 +45,8 @@ that are also a root package, when that root package is also explicitly allowed. "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update a/a b/b --with-dependencies diff --git a/tests/Composer/Test/Fixtures/installer/github-issues-4795.test b/tests/Composer/Test/Fixtures/installer/github-issues-4795.test index b619785f0..4e97d804b 100644 --- a/tests/Composer/Test/Fixtures/installer/github-issues-4795.test +++ b/tests/Composer/Test/Fixtures/installer/github-issues-4795.test @@ -39,11 +39,11 @@ dependency of one the requirements that is allowed for update. "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update b/b --with-dependencies diff --git a/tests/Composer/Test/Fixtures/installer/install-dev-using-dist.test b/tests/Composer/Test/Fixtures/installer/install-dev-using-dist.test index 3c171a4b0..5bdf07c14 100644 --- a/tests/Composer/Test/Fixtures/installer/install-dev-using-dist.test +++ b/tests/Composer/Test/Fixtures/installer/install-dev-using-dist.test @@ -50,8 +50,8 @@ install }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Installing a/a (dev-master) diff --git a/tests/Composer/Test/Fixtures/installer/install-from-incomplete-lock-with-ignore.test b/tests/Composer/Test/Fixtures/installer/install-from-incomplete-lock-with-ignore.test index 856a4257b..54ace3491 100644 --- a/tests/Composer/Test/Fixtures/installer/install-from-incomplete-lock-with-ignore.test +++ b/tests/Composer/Test/Fixtures/installer/install-from-incomplete-lock-with-ignore.test @@ -28,7 +28,7 @@ is issued when allow-missing-requirements if enabled "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false } diff --git a/tests/Composer/Test/Fixtures/installer/install-from-incomplete-lock.test b/tests/Composer/Test/Fixtures/installer/install-from-incomplete-lock.test index 0bbef6ace..e068f5ae9 100644 --- a/tests/Composer/Test/Fixtures/installer/install-from-incomplete-lock.test +++ b/tests/Composer/Test/Fixtures/installer/install-from-incomplete-lock.test @@ -24,7 +24,7 @@ Requirements from the composer file are not installed if the lock file is presen "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false } diff --git a/tests/Composer/Test/Fixtures/installer/install-from-lock-removes-package.test b/tests/Composer/Test/Fixtures/installer/install-from-lock-removes-package.test index 4160fac55..65650cd41 100644 --- a/tests/Composer/Test/Fixtures/installer/install-from-lock-removes-package.test +++ b/tests/Composer/Test/Fixtures/installer/install-from-lock-removes-package.test @@ -28,7 +28,7 @@ Install from a lock file that deleted a package "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false } --INSTALLED-- diff --git a/tests/Composer/Test/Fixtures/installer/install-missing-alias-from-lock.test b/tests/Composer/Test/Fixtures/installer/install-missing-alias-from-lock.test index 5f6459799..c318aca76 100644 --- a/tests/Composer/Test/Fixtures/installer/install-missing-alias-from-lock.test +++ b/tests/Composer/Test/Fixtures/installer/install-missing-alias-from-lock.test @@ -32,7 +32,7 @@ Installing an old alias that doesn't exist anymore from a lock is possible "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false } diff --git a/tests/Composer/Test/Fixtures/installer/load-replaced-package-if-replacer-dropped.test b/tests/Composer/Test/Fixtures/installer/load-replaced-package-if-replacer-dropped.test index 851e03a97..3c249f678 100644 --- a/tests/Composer/Test/Fixtures/installer/load-replaced-package-if-replacer-dropped.test +++ b/tests/Composer/Test/Fixtures/installer/load-replaced-package-if-replacer-dropped.test @@ -29,11 +29,11 @@ Ensure that a package gets loaded which was previously skipped due to replacemen "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update root/dep --with-all-dependencies @@ -42,4 +42,3 @@ Installing replacer/pkg (1.1.0) Installing root/dep (1.2.0) Installing replaced/pkg (1.0.0) Installing root/no-update (1.0.0) - diff --git a/tests/Composer/Test/Fixtures/installer/outdated-lock-file-fails-install.test b/tests/Composer/Test/Fixtures/installer/outdated-lock-file-fails-install.test index 73b34f28f..e4891a3e8 100644 --- a/tests/Composer/Test/Fixtures/installer/outdated-lock-file-fails-install.test +++ b/tests/Composer/Test/Fixtures/installer/outdated-lock-file-fails-install.test @@ -16,11 +16,11 @@ Test that install checks missing requirements from both composer.json if the loc "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- install diff --git a/tests/Composer/Test/Fixtures/installer/outdated-lock-file-with-new-platform-reqs-fails.test b/tests/Composer/Test/Fixtures/installer/outdated-lock-file-with-new-platform-reqs-fails.test index a7ff7b377..c859cb4f1 100644 --- a/tests/Composer/Test/Fixtures/installer/outdated-lock-file-with-new-platform-reqs-fails.test +++ b/tests/Composer/Test/Fixtures/installer/outdated-lock-file-with-new-platform-reqs-fails.test @@ -16,11 +16,11 @@ Platform requires appearing in both lock and composer.json will be checked using "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": {"php": "^20", "ext-foo": "^5"}, - "platform-dev": [] + "platform-dev": {} } --RUN-- install diff --git a/tests/Composer/Test/Fixtures/installer/partial-update-always-updates-symlinked-path-repos.test b/tests/Composer/Test/Fixtures/installer/partial-update-always-updates-symlinked-path-repos.test index e30d3a405..ff0b1c6d3 100644 --- a/tests/Composer/Test/Fixtures/installer/partial-update-always-updates-symlinked-path-repos.test +++ b/tests/Composer/Test/Fixtures/installer/partial-update-always-updates-symlinked-path-repos.test @@ -44,8 +44,8 @@ Partial updates always update path repos which are symlinked, but not those whic }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --INSTALLED-- diff --git a/tests/Composer/Test/Fixtures/installer/partial-update-downgrades-non-allow-listed-unstable.test b/tests/Composer/Test/Fixtures/installer/partial-update-downgrades-non-allow-listed-unstable.test index 2ad9ea3f6..1a14aab73 100644 --- a/tests/Composer/Test/Fixtures/installer/partial-update-downgrades-non-allow-listed-unstable.test +++ b/tests/Composer/Test/Fixtures/installer/partial-update-downgrades-non-allow-listed-unstable.test @@ -37,8 +37,8 @@ Partial update from lock file should apply lock file and if an unstable package }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --INSTALLED-- [ diff --git a/tests/Composer/Test/Fixtures/installer/partial-update-forces-dev-reference-from-lock-for-non-updated-packages.test b/tests/Composer/Test/Fixtures/installer/partial-update-forces-dev-reference-from-lock-for-non-updated-packages.test index 614c87515..7b76991a1 100644 --- a/tests/Composer/Test/Fixtures/installer/partial-update-forces-dev-reference-from-lock-for-non-updated-packages.test +++ b/tests/Composer/Test/Fixtures/installer/partial-update-forces-dev-reference-from-lock-for-non-updated-packages.test @@ -59,11 +59,11 @@ Partial update forces updates dev reference from lock file for non allowed packa "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update b/b @@ -86,11 +86,11 @@ update b/b "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Upgrading a/a (dev-master oldmaster-a => dev-master newmaster-a) diff --git a/tests/Composer/Test/Fixtures/installer/partial-update-from-lock-with-root-alias.test b/tests/Composer/Test/Fixtures/installer/partial-update-from-lock-with-root-alias.test index b5d195a46..7aafbfc3f 100644 --- a/tests/Composer/Test/Fixtures/installer/partial-update-from-lock-with-root-alias.test +++ b/tests/Composer/Test/Fixtures/installer/partial-update-from-lock-with-root-alias.test @@ -36,11 +36,11 @@ Partial update from lock file with root aliases should work } ], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --INSTALLED-- [ @@ -67,11 +67,11 @@ update --lock } ], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Marking c/aliased (2.0.0) as installed, alias of c/aliased (1.0.0) diff --git a/tests/Composer/Test/Fixtures/installer/partial-update-from-lock.test b/tests/Composer/Test/Fixtures/installer/partial-update-from-lock.test index d176b02d3..febca0ba8 100644 --- a/tests/Composer/Test/Fixtures/installer/partial-update-from-lock.test +++ b/tests/Composer/Test/Fixtures/installer/partial-update-from-lock.test @@ -43,8 +43,8 @@ Partial update from lock file should update everything to the state of the lock, }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --INSTALLED-- [ @@ -67,11 +67,11 @@ update b/unstable "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Upgrading a/old (0.9.0 => 1.0.0) diff --git a/tests/Composer/Test/Fixtures/installer/partial-update-installs-from-lock-even-missing.test b/tests/Composer/Test/Fixtures/installer/partial-update-installs-from-lock-even-missing.test index 9d971b384..416459097 100644 --- a/tests/Composer/Test/Fixtures/installer/partial-update-installs-from-lock-even-missing.test +++ b/tests/Composer/Test/Fixtures/installer/partial-update-installs-from-lock-even-missing.test @@ -62,11 +62,11 @@ Partial update installs from lock even if package don't exist in public repo any "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update b/b @@ -90,11 +90,11 @@ update b/b "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Marking a/a (2.1.x-dev oldmaster-a) as uninstalled, alias of a/a (dev-master oldmaster-a) diff --git a/tests/Composer/Test/Fixtures/installer/partial-update-keeps-older-dep-if-still-required-with-provide.test b/tests/Composer/Test/Fixtures/installer/partial-update-keeps-older-dep-if-still-required-with-provide.test index 4cae3c87c..0f80a4252 100644 --- a/tests/Composer/Test/Fixtures/installer/partial-update-keeps-older-dep-if-still-required-with-provide.test +++ b/tests/Composer/Test/Fixtures/installer/partial-update-keeps-older-dep-if-still-required-with-provide.test @@ -36,8 +36,8 @@ Ensure that a partial update of a dependency does not conflict if the only way t "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update dep/pkg2 --with-dependencies @@ -52,11 +52,11 @@ update dep/pkg2 --with-dependencies "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Installing dep/pkg1 (1.0.0) diff --git a/tests/Composer/Test/Fixtures/installer/partial-update-keeps-older-dep-if-still-required.test b/tests/Composer/Test/Fixtures/installer/partial-update-keeps-older-dep-if-still-required.test index b2a6c67cf..ee20c9d77 100644 --- a/tests/Composer/Test/Fixtures/installer/partial-update-keeps-older-dep-if-still-required.test +++ b/tests/Composer/Test/Fixtures/installer/partial-update-keeps-older-dep-if-still-required.test @@ -36,8 +36,8 @@ Ensure that a partial update of a dependency does not conflict if the only way t "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update dep/pkg2 --with-dependencies @@ -52,11 +52,11 @@ update dep/pkg2 --with-dependencies "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Installing dep/pkg1 (1.0.0) diff --git a/tests/Composer/Test/Fixtures/installer/partial-update-loads-root-aliases-for-path-repos.test b/tests/Composer/Test/Fixtures/installer/partial-update-loads-root-aliases-for-path-repos.test index 71d961e09..a3f9921f0 100644 --- a/tests/Composer/Test/Fixtures/installer/partial-update-loads-root-aliases-for-path-repos.test +++ b/tests/Composer/Test/Fixtures/installer/partial-update-loads-root-aliases-for-path-repos.test @@ -34,8 +34,8 @@ Partial updates always load root aliases even for path repos which are symlinked }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --INSTALLED-- diff --git a/tests/Composer/Test/Fixtures/installer/partial-update-with-dependencies-provide.test b/tests/Composer/Test/Fixtures/installer/partial-update-with-dependencies-provide.test index c332ca045..e7935fb29 100644 --- a/tests/Composer/Test/Fixtures/installer/partial-update-with-dependencies-provide.test +++ b/tests/Composer/Test/Fixtures/installer/partial-update-with-dependencies-provide.test @@ -36,8 +36,8 @@ Ensure a partial update of a dependency does NOT update dependencies which provi "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update root/req1 --with-dependencies @@ -52,11 +52,11 @@ update root/req1 --with-dependencies "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Installing dep/pkg1 (1.0.0) diff --git a/tests/Composer/Test/Fixtures/installer/partial-update-with-dependencies-replace.test b/tests/Composer/Test/Fixtures/installer/partial-update-with-dependencies-replace.test index 39994422d..24d717d7d 100644 --- a/tests/Composer/Test/Fixtures/installer/partial-update-with-dependencies-replace.test +++ b/tests/Composer/Test/Fixtures/installer/partial-update-with-dependencies-replace.test @@ -35,8 +35,8 @@ Ensure a partial update of a dependency updates dependencies which replace one o "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update root/req1 --with-dependencies @@ -50,11 +50,11 @@ update root/req1 --with-dependencies "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Installing dep/pkg1 (1.2.0) diff --git a/tests/Composer/Test/Fixtures/installer/partial-update-with-deps-warns-root.test b/tests/Composer/Test/Fixtures/installer/partial-update-with-deps-warns-root.test index d8d49a246..86b3faf13 100644 --- a/tests/Composer/Test/Fixtures/installer/partial-update-with-deps-warns-root.test +++ b/tests/Composer/Test/Fixtures/installer/partial-update-with-deps-warns-root.test @@ -74,8 +74,8 @@ Ensure that a partial update of a dependency does not conflict if the only way t "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update update/pkg1 --with-dependencies @@ -101,11 +101,11 @@ update update/pkg1 --with-dependencies "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-OUTPUT-- Loading composer repositories with package information diff --git a/tests/Composer/Test/Fixtures/installer/partial-update-with-symlinked-path-repos.test b/tests/Composer/Test/Fixtures/installer/partial-update-with-symlinked-path-repos.test index 2ea842613..a6e0aa527 100644 --- a/tests/Composer/Test/Fixtures/installer/partial-update-with-symlinked-path-repos.test +++ b/tests/Composer/Test/Fixtures/installer/partial-update-with-symlinked-path-repos.test @@ -64,8 +64,8 @@ Partially updating one root requirement with transitive deps fully updates trans }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- diff --git a/tests/Composer/Test/Fixtures/installer/platform-ext-solver-problems.test b/tests/Composer/Test/Fixtures/installer/platform-ext-solver-problems.test index be8313f55..34d07c456 100644 --- a/tests/Composer/Test/Fixtures/installer/platform-ext-solver-problems.test +++ b/tests/Composer/Test/Fixtures/installer/platform-ext-solver-problems.test @@ -27,11 +27,11 @@ Test the error output of solver problems with ext/platform packages which have p "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- diff --git a/tests/Composer/Test/Fixtures/installer/problems-reduce-versions.test b/tests/Composer/Test/Fixtures/installer/problems-reduce-versions.test index 377c6a742..4832906d5 100644 --- a/tests/Composer/Test/Fixtures/installer/problems-reduce-versions.test +++ b/tests/Composer/Test/Fixtures/installer/problems-reduce-versions.test @@ -91,11 +91,11 @@ Test the error output minifies version lists "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- @@ -115,4 +115,3 @@ Your requirements could not be resolved to an installable set of packages. Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. --EXPECT-- - diff --git a/tests/Composer/Test/Fixtures/installer/provider-dev-require-can-satisfy-require.test b/tests/Composer/Test/Fixtures/installer/provider-dev-require-can-satisfy-require.test index b5d3fefe7..a4c2b6678 100644 --- a/tests/Composer/Test/Fixtures/installer/provider-dev-require-can-satisfy-require.test +++ b/tests/Composer/Test/Fixtures/installer/provider-dev-require-can-satisfy-require.test @@ -42,11 +42,11 @@ update --no-dev ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Installing b/b (1.0.0) diff --git a/tests/Composer/Test/Fixtures/installer/remove-deletes-unused-deps.test b/tests/Composer/Test/Fixtures/installer/remove-deletes-unused-deps.test index 8a81d02e9..0e5467e59 100644 --- a/tests/Composer/Test/Fixtures/installer/remove-deletes-unused-deps.test +++ b/tests/Composer/Test/Fixtures/installer/remove-deletes-unused-deps.test @@ -34,7 +34,7 @@ Removing a package deletes unused dependencies and does not update other depende "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false } diff --git a/tests/Composer/Test/Fixtures/installer/remove-does-nothing-if-removal-requires-update-of-dep.test b/tests/Composer/Test/Fixtures/installer/remove-does-nothing-if-removal-requires-update-of-dep.test index 5df46f118..5a703492c 100644 --- a/tests/Composer/Test/Fixtures/installer/remove-does-nothing-if-removal-requires-update-of-dep.test +++ b/tests/Composer/Test/Fixtures/installer/remove-does-nothing-if-removal-requires-update-of-dep.test @@ -27,7 +27,7 @@ Removing a package has no effect if another package would require an update in o "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false } diff --git a/tests/Composer/Test/Fixtures/installer/replaced-packages-should-not-be-installed-when-installing-from-lock.test b/tests/Composer/Test/Fixtures/installer/replaced-packages-should-not-be-installed-when-installing-from-lock.test index 947d96b28..ea06b8e9a 100644 --- a/tests/Composer/Test/Fixtures/installer/replaced-packages-should-not-be-installed-when-installing-from-lock.test +++ b/tests/Composer/Test/Fixtures/installer/replaced-packages-should-not-be-installed-when-installing-from-lock.test @@ -29,8 +29,8 @@ Requiring a replaced package in a version, that is not provided by the replacing "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- install diff --git a/tests/Composer/Test/Fixtures/installer/root-alias-change-with-circular-dep.test b/tests/Composer/Test/Fixtures/installer/root-alias-change-with-circular-dep.test index bcbbcc81f..009f1c55d 100644 --- a/tests/Composer/Test/Fixtures/installer/root-alias-change-with-circular-dep.test +++ b/tests/Composer/Test/Fixtures/installer/root-alias-change-with-circular-dep.test @@ -41,11 +41,11 @@ This also checks that an implicit stabilityFlag is added for the root package, i "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- install diff --git a/tests/Composer/Test/Fixtures/installer/root-alias-gets-loaded-for-locked-pkgs.test b/tests/Composer/Test/Fixtures/installer/root-alias-gets-loaded-for-locked-pkgs.test index 172288f75..03945bd47 100644 --- a/tests/Composer/Test/Fixtures/installer/root-alias-gets-loaded-for-locked-pkgs.test +++ b/tests/Composer/Test/Fixtures/installer/root-alias-gets-loaded-for-locked-pkgs.test @@ -24,11 +24,11 @@ Newly defined root alias does not get loaded if package is loaded from lock file "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --INSTALLED-- [ diff --git a/tests/Composer/Test/Fixtures/installer/root-requirements-do-not-affect-locked-versions.test b/tests/Composer/Test/Fixtures/installer/root-requirements-do-not-affect-locked-versions.test index 32127b612..a3a75e79f 100644 --- a/tests/Composer/Test/Fixtures/installer/root-requirements-do-not-affect-locked-versions.test +++ b/tests/Composer/Test/Fixtures/installer/root-requirements-do-not-affect-locked-versions.test @@ -45,7 +45,7 @@ The locked version will not get overwritten by an install but fails on invalid p "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false } diff --git a/tests/Composer/Test/Fixtures/installer/solver-problems.test b/tests/Composer/Test/Fixtures/installer/solver-problems.test index 95f7f6e2b..65a28cc02 100644 --- a/tests/Composer/Test/Fixtures/installer/solver-problems.test +++ b/tests/Composer/Test/Fixtures/installer/solver-problems.test @@ -86,11 +86,11 @@ Test the error output of solver problems. "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- diff --git a/tests/Composer/Test/Fixtures/installer/suggest-prod.test b/tests/Composer/Test/Fixtures/installer/suggest-prod.test index ed2023504..b0e22b177 100644 --- a/tests/Composer/Test/Fixtures/installer/suggest-prod.test +++ b/tests/Composer/Test/Fixtures/installer/suggest-prod.test @@ -22,11 +22,11 @@ Suggestions are not displayed for when not updating the lock file "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- install diff --git a/tests/Composer/Test/Fixtures/installer/update-alias-lock.test b/tests/Composer/Test/Fixtures/installer/update-alias-lock.test index 5aceda8ea..96001fa15 100644 --- a/tests/Composer/Test/Fixtures/installer/update-alias-lock.test +++ b/tests/Composer/Test/Fixtures/installer/update-alias-lock.test @@ -52,11 +52,11 @@ update "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Upgrading a/a (dev-master 1234 => dev-master master) diff --git a/tests/Composer/Test/Fixtures/installer/update-alias-lock2.test b/tests/Composer/Test/Fixtures/installer/update-alias-lock2.test index b06ce3119..bd38a6668 100644 --- a/tests/Composer/Test/Fixtures/installer/update-alias-lock2.test +++ b/tests/Composer/Test/Fixtures/installer/update-alias-lock2.test @@ -37,7 +37,7 @@ Updating an aliased package where the old alias matches the new package should n "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false } @@ -64,11 +64,11 @@ update "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-INSTALLED-- [ diff --git a/tests/Composer/Test/Fixtures/installer/update-allow-list-locked-require.test b/tests/Composer/Test/Fixtures/installer/update-allow-list-locked-require.test index 317f2396d..a4c40e3af 100644 --- a/tests/Composer/Test/Fixtures/installer/update-allow-list-locked-require.test +++ b/tests/Composer/Test/Fixtures/installer/update-allow-list-locked-require.test @@ -40,11 +40,11 @@ Update with a package allow list only updates those packages if they are not pre "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update allowed/pkg dependency/pkg diff --git a/tests/Composer/Test/Fixtures/installer/update-allow-list-minimal-changes.test b/tests/Composer/Test/Fixtures/installer/update-allow-list-minimal-changes.test index 889555ed0..fc3aa0ecf 100644 --- a/tests/Composer/Test/Fixtures/installer/update-allow-list-minimal-changes.test +++ b/tests/Composer/Test/Fixtures/installer/update-allow-list-minimal-changes.test @@ -49,11 +49,11 @@ Updating transitive dependencies only updates what is really required when a min "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update allowed/pkg --with-all-dependencies --minimal-changes diff --git a/tests/Composer/Test/Fixtures/installer/update-allow-list-patterns-with-all-dependencies.test b/tests/Composer/Test/Fixtures/installer/update-allow-list-patterns-with-all-dependencies.test index 5c796181a..9dabdd134 100644 --- a/tests/Composer/Test/Fixtures/installer/update-allow-list-patterns-with-all-dependencies.test +++ b/tests/Composer/Test/Fixtures/installer/update-allow-list-patterns-with-all-dependencies.test @@ -51,11 +51,11 @@ Update with a package allow list pattern and all-dependencies flag updates packa "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update allowed/pkg-* --with-all-dependencies diff --git a/tests/Composer/Test/Fixtures/installer/update-allow-list-patterns-with-root-dependencies.test b/tests/Composer/Test/Fixtures/installer/update-allow-list-patterns-with-root-dependencies.test index 5cabcbb4a..221769085 100644 --- a/tests/Composer/Test/Fixtures/installer/update-allow-list-patterns-with-root-dependencies.test +++ b/tests/Composer/Test/Fixtures/installer/update-allow-list-patterns-with-root-dependencies.test @@ -63,11 +63,11 @@ Update with a package allow list only updates those packages and their dependenc "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update allowed/pkg-* foobar --with-dependencies diff --git a/tests/Composer/Test/Fixtures/installer/update-allow-list-patterns.test b/tests/Composer/Test/Fixtures/installer/update-allow-list-patterns.test index fde1c9eab..a4314d6cd 100644 --- a/tests/Composer/Test/Fixtures/installer/update-allow-list-patterns.test +++ b/tests/Composer/Test/Fixtures/installer/update-allow-list-patterns.test @@ -54,11 +54,11 @@ Update with a package allow list only updates those corresponding to the pattern "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update vendor/Test* exact/test-package notexact/Test all/* no/reg.?xp diff --git a/tests/Composer/Test/Fixtures/installer/update-allow-list-reads-lock.test b/tests/Composer/Test/Fixtures/installer/update-allow-list-reads-lock.test index ef7ca56c0..68ae0a53b 100644 --- a/tests/Composer/Test/Fixtures/installer/update-allow-list-reads-lock.test +++ b/tests/Composer/Test/Fixtures/installer/update-allow-list-reads-lock.test @@ -31,7 +31,7 @@ Limited update takes rules from lock if available, and not from the installed re "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false } diff --git a/tests/Composer/Test/Fixtures/installer/update-allow-list-removes-unused.test b/tests/Composer/Test/Fixtures/installer/update-allow-list-removes-unused.test index 7f2299566..f59c14996 100644 --- a/tests/Composer/Test/Fixtures/installer/update-allow-list-removes-unused.test +++ b/tests/Composer/Test/Fixtures/installer/update-allow-list-removes-unused.test @@ -35,11 +35,11 @@ Update with a package allow list removes unused packages "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update --with-dependencies allowed/pkg diff --git a/tests/Composer/Test/Fixtures/installer/update-allow-list-require-new-replace.test b/tests/Composer/Test/Fixtures/installer/update-allow-list-require-new-replace.test index 163471fa6..13e99ad58 100644 --- a/tests/Composer/Test/Fixtures/installer/update-allow-list-require-new-replace.test +++ b/tests/Composer/Test/Fixtures/installer/update-allow-list-require-new-replace.test @@ -31,11 +31,11 @@ A partial update for a new package yet to be installed should remove another dep "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update new/pkg diff --git a/tests/Composer/Test/Fixtures/installer/update-allow-list-warns-non-existing-patterns.test b/tests/Composer/Test/Fixtures/installer/update-allow-list-warns-non-existing-patterns.test index 4d07bc245..9450c29ae 100644 --- a/tests/Composer/Test/Fixtures/installer/update-allow-list-warns-non-existing-patterns.test +++ b/tests/Composer/Test/Fixtures/installer/update-allow-list-warns-non-existing-patterns.test @@ -33,11 +33,11 @@ Verify that partial updates warn about using patterns in the argument which have "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update b/b foo/bar baz/* --with-dependencies diff --git a/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-alias.test b/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-alias.test index 5e5f04777..182207786 100644 --- a/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-alias.test +++ b/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-alias.test @@ -49,11 +49,11 @@ Verify that a partial update with deps correctly keeps track of all aliases. } ], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update new/pkg --with-all-dependencies @@ -87,8 +87,8 @@ update new/pkg --with-all-dependencies }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Marking current/dep2 (1.0.x-dev) as uninstalled, alias of current/dep2 (dev-foo) diff --git a/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-new-requirement.test b/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-new-requirement.test index ff1257498..0b4f53f57 100644 --- a/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-new-requirement.test +++ b/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-new-requirement.test @@ -36,11 +36,11 @@ When partially updating a package to a newer version and the new version has a n "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update root/pkg2 --with-dependencies diff --git a/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-require-new-replace-mutual.test b/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-require-new-replace-mutual.test index a850748c8..b110a178c 100644 --- a/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-require-new-replace-mutual.test +++ b/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-require-new-replace-mutual.test @@ -36,11 +36,11 @@ Require a new package in the composer.json and updating with its name as an argu "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update new/pkg --with-dependencies diff --git a/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-require-new-replace.test b/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-require-new-replace.test index 8bb676e76..0f5449537 100644 --- a/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-require-new-replace.test +++ b/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-require-new-replace.test @@ -31,11 +31,11 @@ Require a new package in the composer.json and updating with its name as an argu "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update new/pkg --with-dependencies diff --git a/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-require-new.test b/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-require-new.test index 24eb95538..bd0146596 100644 --- a/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-require-new.test +++ b/tests/Composer/Test/Fixtures/installer/update-allow-list-with-dependencies-require-new.test @@ -35,11 +35,11 @@ Require a new package in the composer.json and updating with its name as an argu "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update new/pkg --with-dependencies diff --git a/tests/Composer/Test/Fixtures/installer/update-allow-list.test b/tests/Composer/Test/Fixtures/installer/update-allow-list.test index 593375442..6f7f29dc2 100644 --- a/tests/Composer/Test/Fixtures/installer/update-allow-list.test +++ b/tests/Composer/Test/Fixtures/installer/update-allow-list.test @@ -45,11 +45,11 @@ Update with a package allow list only updates those packages listed as command a "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update allowed/pkg diff --git a/tests/Composer/Test/Fixtures/installer/update-changes-url.test b/tests/Composer/Test/Fixtures/installer/update-changes-url.test index 15600aefe..c1fe0363a 100644 --- a/tests/Composer/Test/Fixtures/installer/update-changes-url.test +++ b/tests/Composer/Test/Fixtures/installer/update-changes-url.test @@ -159,8 +159,8 @@ g/g is dev and installed in a different ref than the #ref, so it gets updated an "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-LOCK-- { @@ -226,8 +226,8 @@ g/g is dev and installed in a different ref than the #ref, so it gets updated an }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update a/a b/b d/d g/g diff --git a/tests/Composer/Test/Fixtures/installer/update-dev-packages-updates-repo-url.test b/tests/Composer/Test/Fixtures/installer/update-dev-packages-updates-repo-url.test index 0a918b183..77e95a66a 100644 --- a/tests/Composer/Test/Fixtures/installer/update-dev-packages-updates-repo-url.test +++ b/tests/Composer/Test/Fixtures/installer/update-dev-packages-updates-repo-url.test @@ -59,11 +59,11 @@ Updating dev packages where no reference change happened triggers a repo url cha "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update @@ -86,11 +86,11 @@ update "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Upgrading a/a (dev-master oldmaster => dev-master newmaster) diff --git a/tests/Composer/Test/Fixtures/installer/update-mirrors-changes-url.test b/tests/Composer/Test/Fixtures/installer/update-mirrors-changes-url.test index d002d2c94..78a2d60d3 100644 --- a/tests/Composer/Test/Fixtures/installer/update-mirrors-changes-url.test +++ b/tests/Composer/Test/Fixtures/installer/update-mirrors-changes-url.test @@ -147,8 +147,8 @@ g/g is dev and installed in a different ref than the #ref, so it gets updated an "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-LOCK-- { @@ -204,8 +204,8 @@ g/g is dev and installed in a different ref than the #ref, so it gets updated an }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update mirrors diff --git a/tests/Composer/Test/Fixtures/installer/update-mirrors-fails-with-new-req.test b/tests/Composer/Test/Fixtures/installer/update-mirrors-fails-with-new-req.test index 0b47f4b5a..d057b32e0 100644 --- a/tests/Composer/Test/Fixtures/installer/update-mirrors-fails-with-new-req.test +++ b/tests/Composer/Test/Fixtures/installer/update-mirrors-fails-with-new-req.test @@ -38,11 +38,11 @@ Update mirrors with a new root require which is not yet in lock should simply ig ], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update mirrors @@ -56,10 +56,10 @@ update mirrors ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- diff --git a/tests/Composer/Test/Fixtures/installer/update-no-dev-still-resolves-dev.test b/tests/Composer/Test/Fixtures/installer/update-no-dev-still-resolves-dev.test index 9844616f4..16a40e13b 100644 --- a/tests/Composer/Test/Fixtures/installer/update-no-dev-still-resolves-dev.test +++ b/tests/Composer/Test/Fixtures/installer/update-no-dev-still-resolves-dev.test @@ -54,8 +54,8 @@ Updates with --no-dev but we still end up with a complete lock file including de }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update --no-dev diff --git a/tests/Composer/Test/Fixtures/installer/update-no-install.test b/tests/Composer/Test/Fixtures/installer/update-no-install.test index e1b6f4954..1fe7c0af0 100644 --- a/tests/Composer/Test/Fixtures/installer/update-no-install.test +++ b/tests/Composer/Test/Fixtures/installer/update-no-install.test @@ -47,11 +47,11 @@ update --no-install ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-INSTALLED-- diff --git a/tests/Composer/Test/Fixtures/installer/update-package-present-in-lock-but-not-at-all-in-remote.test b/tests/Composer/Test/Fixtures/installer/update-package-present-in-lock-but-not-at-all-in-remote.test index c98d34dc6..5853fd782 100644 --- a/tests/Composer/Test/Fixtures/installer/update-package-present-in-lock-but-not-at-all-in-remote.test +++ b/tests/Composer/Test/Fixtures/installer/update-package-present-in-lock-but-not-at-all-in-remote.test @@ -28,11 +28,11 @@ Update package which is in lock file but not in remote repo at all should show t "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update main/dep --with-all-dependencies diff --git a/tests/Composer/Test/Fixtures/installer/update-package-present-in-lock-but-not-in-remote-due-to-min-stability.test b/tests/Composer/Test/Fixtures/installer/update-package-present-in-lock-but-not-in-remote-due-to-min-stability.test index c5582a0e3..3816ff647 100644 --- a/tests/Composer/Test/Fixtures/installer/update-package-present-in-lock-but-not-in-remote-due-to-min-stability.test +++ b/tests/Composer/Test/Fixtures/installer/update-package-present-in-lock-but-not-in-remote-due-to-min-stability.test @@ -30,11 +30,11 @@ Update package which is in lock file but not remote repo due to min-stability sh "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update main/dep --with-all-dependencies diff --git a/tests/Composer/Test/Fixtures/installer/update-package-present-in-lock-but-not-in-remote.test b/tests/Composer/Test/Fixtures/installer/update-package-present-in-lock-but-not-in-remote.test index 6ff3f6f5b..9bafe3a70 100644 --- a/tests/Composer/Test/Fixtures/installer/update-package-present-in-lock-but-not-in-remote.test +++ b/tests/Composer/Test/Fixtures/installer/update-package-present-in-lock-but-not-in-remote.test @@ -29,11 +29,11 @@ Update package which is in lock file but not in remote repo in the correct versi "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update main/dep --with-all-dependencies diff --git a/tests/Composer/Test/Fixtures/installer/update-package-present-in-lower-repo-prio-but-not-main-due-to-min-stability.test b/tests/Composer/Test/Fixtures/installer/update-package-present-in-lower-repo-prio-but-not-main-due-to-min-stability.test index 263282e78..be20fd200 100644 --- a/tests/Composer/Test/Fixtures/installer/update-package-present-in-lower-repo-prio-but-not-main-due-to-min-stability.test +++ b/tests/Composer/Test/Fixtures/installer/update-package-present-in-lower-repo-prio-but-not-main-due-to-min-stability.test @@ -33,11 +33,11 @@ Update package which is in lower prio repo but not main repo due to min-stabilit "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update main/dep --with-all-dependencies diff --git a/tests/Composer/Test/Fixtures/installer/update-picks-up-change-of-vcs-type.test b/tests/Composer/Test/Fixtures/installer/update-picks-up-change-of-vcs-type.test index c1e746356..3558a785e 100644 --- a/tests/Composer/Test/Fixtures/installer/update-picks-up-change-of-vcs-type.test +++ b/tests/Composer/Test/Fixtures/installer/update-picks-up-change-of-vcs-type.test @@ -35,11 +35,11 @@ Converting from one VCS type to another (including an URL change) should update "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update mirrors @@ -55,11 +55,11 @@ update mirrors "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Upgrading a/a (1.0.0 old-hg-ref => 1.0.0 new-git-ref) diff --git a/tests/Composer/Test/Fixtures/installer/update-removes-unused-locked-dep.test b/tests/Composer/Test/Fixtures/installer/update-removes-unused-locked-dep.test index a47afb7ff..f76941357 100644 --- a/tests/Composer/Test/Fixtures/installer/update-removes-unused-locked-dep.test +++ b/tests/Composer/Test/Fixtures/installer/update-removes-unused-locked-dep.test @@ -24,11 +24,11 @@ A composer update should remove unused locked dependencies from the lock file an "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --INSTALLED-- [ @@ -46,11 +46,11 @@ update "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-OUTPUT-- Loading composer repositories with package information diff --git a/tests/Composer/Test/Fixtures/installer/update-syncs-outdated.test b/tests/Composer/Test/Fixtures/installer/update-syncs-outdated.test index acef95924..171202492 100644 --- a/tests/Composer/Test/Fixtures/installer/update-syncs-outdated.test +++ b/tests/Composer/Test/Fixtures/installer/update-syncs-outdated.test @@ -34,11 +34,11 @@ Update updates the outdated state of packages "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update diff --git a/tests/Composer/Test/Fixtures/installer/update-to-empty-from-blank.test b/tests/Composer/Test/Fixtures/installer/update-to-empty-from-blank.test index e9892c3b6..5f0d0aed1 100644 --- a/tests/Composer/Test/Fixtures/installer/update-to-empty-from-blank.test +++ b/tests/Composer/Test/Fixtures/installer/update-to-empty-from-blank.test @@ -11,10 +11,10 @@ update "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- diff --git a/tests/Composer/Test/Fixtures/installer/update-to-empty-from-locked.test b/tests/Composer/Test/Fixtures/installer/update-to-empty-from-locked.test index 1a2227cec..29e035ba0 100644 --- a/tests/Composer/Test/Fixtures/installer/update-to-empty-from-locked.test +++ b/tests/Composer/Test/Fixtures/installer/update-to-empty-from-locked.test @@ -25,11 +25,11 @@ Update to a state without dependency works well from locked with dependency "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update @@ -39,11 +39,11 @@ update "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Removing a/a (dev-master 1234) diff --git a/tests/Composer/Test/Fixtures/installer/update-with-all-dependencies.test b/tests/Composer/Test/Fixtures/installer/update-with-all-dependencies.test index e9fc88ef9..e63d3daab 100644 --- a/tests/Composer/Test/Fixtures/installer/update-with-all-dependencies.test +++ b/tests/Composer/Test/Fixtures/installer/update-with-all-dependencies.test @@ -37,11 +37,11 @@ When `--with-all-dependencies` is used, Composer should update the dependencies "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --RUN-- update b/b --with-all-dependencies diff --git a/tests/Composer/Test/Fixtures/installer/updating-dev-from-lock-removes-old-deps.test b/tests/Composer/Test/Fixtures/installer/updating-dev-from-lock-removes-old-deps.test index 545f92fe9..952c9534a 100644 --- a/tests/Composer/Test/Fixtures/installer/updating-dev-from-lock-removes-old-deps.test +++ b/tests/Composer/Test/Fixtures/installer/updating-dev-from-lock-removes-old-deps.test @@ -20,7 +20,7 @@ Installing locked dev packages should remove old dependencies "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false } diff --git a/tests/Composer/Test/Fixtures/installer/updating-dev-updates-url-and-reference.test b/tests/Composer/Test/Fixtures/installer/updating-dev-updates-url-and-reference.test index c84ab3525..a915cd63f 100644 --- a/tests/Composer/Test/Fixtures/installer/updating-dev-updates-url-and-reference.test +++ b/tests/Composer/Test/Fixtures/installer/updating-dev-updates-url-and-reference.test @@ -61,8 +61,8 @@ update "stability-flags": {"a/a":20}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [] + "platform": {}, + "platform-dev": {} } --EXPECT-- Upgrading a/a (dev-master oldref => dev-master newref) diff --git a/tests/Composer/Test/InstallerTest.php b/tests/Composer/Test/InstallerTest.php index c81257c22..64a11cd49 100644 --- a/tests/Composer/Test/InstallerTest.php +++ b/tests/Composer/Test/InstallerTest.php @@ -444,6 +444,11 @@ class InstallerTest extends TestCase self::assertEquals($expectResult, $result, $output . stream_get_contents($appOutput)); if ($expectLock && isset($actualLock)) { unset($actualLock['hash'], $actualLock['content-hash'], $actualLock['_readme'], $actualLock['plugin-api-version']); + foreach (['stability-flags', 'platform', 'platform-dev'] as $key) { + if ($expectLock[$key] === []) { + $expectLock[$key] = new \stdClass; + } + } self::assertEquals($expectLock, $actualLock); } diff --git a/tests/Composer/Test/Package/LockerTest.php b/tests/Composer/Test/Package/LockerTest.php index fd52642ff..8bc4c598b 100644 --- a/tests/Composer/Test/Package/LockerTest.php +++ b/tests/Composer/Test/Package/LockerTest.php @@ -113,9 +113,9 @@ class LockerTest extends TestCase 'packages-dev' => [], 'aliases' => [], 'minimum-stability' => 'dev', - 'stability-flags' => [], - 'platform' => [], - 'platform-dev' => [], + 'stability-flags' => new \stdClass, + 'platform' => new \stdClass, + 'platform-dev' => new \stdClass, 'platform-overrides' => ['foo/bar' => '1.0'], 'prefer-stable' => false, 'prefer-lowest' => false,