phpunit-speedtrap icon indicating copy to clipboard operation
phpunit-speedtrap copied to clipboard

Enhancement: Update extension to use event system of `phpunit/phpunit:10.0.0`

Open localheinz opened this issue 1 year ago • 6 comments

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.

localheinz avatar Oct 24 '22 14:10 localheinz

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.

localheinz avatar Mar 05 '23 15:03 localheinz

Any chance to be merged?

dmitryuk avatar Apr 19 '23 04:04 dmitryuk

How can I help to make this merged?

akondas avatar May 03 '23 12:05 akondas

Ping @johnkary :)

XWB avatar Jun 15 '23 11:06 XWB

Quick update: for those of you coming here and looking for an alternative that works with

  • phpunit/phpunit:^9.6.0
  • phpunit/phpunit:^10.4.0

I just released ergebnis/phpunit-slow-test-detector:2.4.0 with support for both.

localheinz avatar Nov 07 '23 15:11 localheinz

Quick update: for those of you coming here and looking for an alternative that works with

  • phpunit/phpunit:^8.5.26
  • phpunit/phpunit:^9.6.0
  • phpunit/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.

localheinz avatar Dec 03 '23 13:12 localheinz