-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
PHPUnit 11 incompatibility #53
Comments
Isn't it possible that |
I just used this bootstrap.php:
|
This error occurred because the cache was created with a different |
This still seem to be an issue with PHPUnit 11 (11.2.5). Even if you use the Extension class recommended in the README I get the error "PHP Fatal error: Non-readonly class PHPUnit\Event\TestSuite\TestSuiteForTestClass cannot extend readonly class PHPUnit\Event\TestSuite\TestSuite in /builds/finpension/finpension-admins/vendor/phpunit/phpunit/src/Event/Value/TestSuite/TestSuiteForTestClass.php on line 19" The only warkaround that works for me is, if I call "BypassFinals::enable(false, true);", with the readonly removal it won't work. |
@finpension-aless it was caused by something else. I tried to modify the extension class to skip the PHPUnit code altogether. Please try the dev version to see if it works for you. |
I have set up PHPUnit 11 and started test:
With PHPUnit 10.5.13 everything works fine.
The text was updated successfully, but these errors were encountered: