phpunit-speedtrap
phpunit-speedtrap copied to clipboard
Enhancement: Update extension to use event system of `phpunit/phpunit:10.0.0`
This pull request
- [x] updates the extension to use the new event system of
phpunit/phpunit:10.0.0, 2023
Follows #83. Related to https://github.com/sebastianbergmann/phpunit/issues/4676.
💁♂️ I will talk about Extending PHPUnit with its New Event System on October 25, 2022, at the International PHP Conference 2022 (Munich)
Since this extension is one of the few that I have been using and contributed to, I would like to use this pull request to demonstrate updating an existing extension to the new event system.
You recently updated the extension from the deprecated hooks interface to using the deprecated TestListener (see #83). phpunit/phpunit:10.0.0, which will be released on February 3, 2023, will remove the deprecated hooks and TestListener extension points.
To keep the diff small and understandable, I have tried to make the fewest changes possible.
I understand that there could be more work done, which I am happy to do, but I believe that this would be beyond the scope of this pull request.
For those of you coming here and looking for an alternative that works with phpunit/phpunit:10.0.0, try ergebnis/phpunit-slow-test-detector.
Any chance to be merged?
How can I help to make this merged?
Ping @johnkary :)
Quick update: for those of you coming here and looking for an alternative that works with
phpunit/phpunit:^9.6.0phpunit/phpunit:^10.4.0
I just released ergebnis/phpunit-slow-test-detector:2.4.0 with support for both.
Quick update: for those of you coming here and looking for an alternative that works with
phpunit/phpunit:^8.5.26phpunit/phpunit:^9.6.0phpunit/phpunit:^10.4.0
as well as
- PHP 7.4
- PHP 8.1
- PHP 8.2
- PHP 8.3
I just released ergebnis/phpunit-slow-test-detector:2.6.0 with support for all of these.