diff --git a/phpunit b/phpunit index 03bf63b0aae99..9141d249d2695 100755 --- a/phpunit +++ b/phpunit @@ -13,7 +13,7 @@ if (!getenv('SYMFONY_PHPUNIT_VERSION')) { } elseif (\PHP_VERSION_ID < 70300) { putenv('SYMFONY_PHPUNIT_VERSION=8.5'); } else { - putenv('SYMFONY_PHPUNIT_VERSION=9.4'); + putenv('SYMFONY_PHPUNIT_VERSION=9.5'); } } if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS')) { diff --git a/src/Symfony/Bridge/PhpUnit/Legacy/CoverageListenerTrait.php b/src/Symfony/Bridge/PhpUnit/Legacy/CoverageListenerTrait.php index c1b276cea22d9..4ca396ece164b 100644 --- a/src/Symfony/Bridge/PhpUnit/Legacy/CoverageListenerTrait.php +++ b/src/Symfony/Bridge/PhpUnit/Legacy/CoverageListenerTrait.php @@ -42,7 +42,7 @@ public function startTest($test) return; } - $annotations = $test->getAnnotations(); + $annotations = Test::parseTestMethodAnnotations(\get_class($test), $test->getName(false)); $ignoredAnnotations = ['covers', 'coversDefaultClass', 'coversNothing']; diff --git a/src/Symfony/Component/Security/phpunit.xml.dist b/src/Symfony/Component/Security/phpunit.xml.dist index c6d083afeec10..ec8c89709e0cb 100644 --- a/src/Symfony/Component/Security/phpunit.xml.dist +++ b/src/Symfony/Component/Security/phpunit.xml.dist @@ -14,7 +14,6 @@ - ./Tests/ ./*/Tests/ @@ -23,8 +22,6 @@ ./ - ./Resources - ./Tests ./vendor ./*/Resources ./*/Tests