- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility with PHPUnit 11: Interface "PHPUnit\Event\Test\AssertionSucceededSubscriber" not found #735
Comments
Hey, thanks for the report, the new PHPUnit version might have introduced some breaking changes. I'll try to investigate this weekend. |
I'm getting the same thing
|
Another issue I'm getting with Laravel 12 and PHPUnit 11, using the Clockwork\Support\Laravel\Tests\UsesClockwork Trait : It looks like some methods have been made final in PHPUnit 11 and that might make things harder |
I've added PHPUnit 11+ and Pest 3 compatibility in master (8a37d3c), please give it a try and let me know how it works for you. Unfortunately some changes made in PHPUnit 11 make the integration more tricky:
With PHPUnit 10 and lower, asserts are still supported and no extra performance overhead is incurred. @nicolus You shouldn't be using this trait, see here for PHPUnit 10+ installation instructions - https://underground.works/clockwork/#docs-collected-data |
Description
When attempting to run tests with PHPUnit 11 with the ClockworkExtension mentioned for PHPUnit 10, the tests fail due to a missing interface
PHPUnit\Event\Test\AssertionSucceededSubscriber
.The error message is as follows:
Expected Behavior
The tests should run without warning, Clockwork should be compatible with PHPUnit 11 and log the output.
Actual Behavior
Tests run through successfully with the above mentioned warning, making the extension incompatible with PHPUnit 11. No output found in clockwork
Environment
The text was updated successfully, but these errors were encountered: