Skip to content

Conversation

@jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Mar 31, 2023

Remove the ExpectPHPException polyfill and all references to it as support for expecting PHP native and user added deprecations, notices, warnings and errors has been dropped in PHPUnit 10.0.

PHP native Exceptions can still be tested using the expectException() method with the name of the PHP native Exception.

Refs:

Remove the `ExpectPHPException` polyfill and all references to it as support for expecting PHP native and user added deprecations, notices, warnings and errors has been dropped in PHPUnit 10.0.

PHP native Exceptions can still be tested using the `expectException()` method with the name of the PHP native Exception.

Refs:
* https://phpunit.de/announcements/phpunit-10.html
* https://github.com/sebastianbergmann/phpunit/blob/main/ChangeLog-10.0.md#1000---2023-02-03
* sebastianbergmann/phpunit#3775
* sebastianbergmann/phpunit#5062
* sebastianbergmann/phpunit@a2c784c
@jrfnl jrfnl added this to the 2.0.0 milestone Mar 31, 2023
@jrfnl jrfnl mentioned this pull request Mar 31, 2023
11 tasks
@jrfnl jrfnl merged commit 73bf346 into 2.x Mar 31, 2023
@jrfnl jrfnl deleted the 2.0/phpunit-10/remove-expectphpexception-polyfill branch March 31, 2023 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant