From 310713e7084dd49d6ae9cd194dcf49a6e8621fc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=CC=81s=CC=8C=20Ludvik?= Date: Wed, 5 Jun 2024 13:21:34 +0200 Subject: [PATCH] updated several packages to update PHPUnit to version 11 - PHPUnit 11 does not allow extensions as it was used in phpunit-injector, so the workaround has been introduced - PHPUnit 11 no longer supports doc-blocks and uses attributes, so the code has been updated to the new standard - PHPUnit 11 supports only data providers from the public static method so all providers have been updated - this led to rewriting some of the providers and associated methods - PHPUnit 11 no longer supports abstract mocks so some mocks have to be updated - setMethods method has been replaced by onlyMethods --- .gitignore | 2 +- composer.json | 2 +- phpunit.xml | 10 ++++------ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index d2f57af5cd..3924c3b75e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ /.php_cs.cache /composer.lock /vendor -/.phpunit.result.cache +/.phpunit.cache diff --git a/composer.json b/composer.json index b03059ca5f..24fcad7593 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "twig/twig": "^3.5.0" }, "require-dev": { - "phpunit/phpunit": "^9.5.20" + "phpunit/phpunit": "^11.2.1" }, "config": { "allow-plugins": { diff --git a/phpunit.xml b/phpunit.xml index 9bec070219..bfa47b34f5 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -2,16 +2,14 @@ - +