Suppressed deprecations incorrectly stop test execution when execution should be stopped on deprecation #6100
Labels
feature/test-runner
CLI test runner
type/bug
Something is broken
version/11
Something affects PHPUnit 11
Summary
With the following flags:
phpunit will stop the further execution of the tests after the first suppressed deprecation occurs. In this case the test will be shown as OK without any notices.
Current behavior
When suppressed deprecations occurs with active
stopOnDeprecation="true"
flag, phpunit stops further tests without any notice and the test will be successful.Note:
Suppressed deprecations are used by Symfony: https://github.com/symfony/deprecation-contracts/blob/main/function.php#L25
How to reproduce
phpunit.xml
Test:
Result:
Expected behavior
Result:
Or alternatively: Don't stop when it's suppressed.
The text was updated successfully, but these errors were encountered: