From fe63fd2e553d2ad31f4a4db3b53a42d1822b686d Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Thu, 18 Jul 2024 16:23:41 +0200 Subject: [PATCH] Allow --coverage-filter CLI option to be used multiple times again --- ChangeLog-10.5.md | 1 + src/TextUI/Configuration/Cli/Builder.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog-10.5.md b/ChangeLog-10.5.md index aa15242b9f6..3fa3f4b939f 100644 --- a/ChangeLog-10.5.md +++ b/ChangeLog-10.5.md @@ -7,6 +7,7 @@ All notable changes of the PHPUnit 10.5 release series are documented in this fi ### Fixed * [#5898](https://github.com/sebastianbergmann/phpunit/issues/5898): `Test\Passed` event is not emitted for PHPT tests +* `--coverage-filter` CLI option could not be used multiple times ## [10.5.27] - 2024-07-10 diff --git a/src/TextUI/Configuration/Cli/Builder.php b/src/TextUI/Configuration/Cli/Builder.php index deac1b5d6eb..f0cb95f5cc4 100644 --- a/src/TextUI/Configuration/Cli/Builder.php +++ b/src/TextUI/Configuration/Cli/Builder.php @@ -798,6 +798,8 @@ public function fromParameters(array $parameters): Configuration $coverageFilter[] = $option[1]; + $optionAllowedMultipleTimes = true; + break; case '--random-order':