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
PHP errors, notices, etc. cannot be tested anymore with PHPUnit 8.3 #3774
Comments
So I presume the 8.3 docs It's still unfortunate that 8.2 docs show the use of internal class and then it's removed in 8.3 causing test suites of users to break. If 8.2 docd has warned about used of internal classes people could have tried to fix the issue before hand or hold off using 8.3. |
The documentation for PHPUnit 8.3 is 1) not updated to reflect this and 2) is not published yet. |
The removal of this functionality was not intentional. |
PHPUnit 8.3.1 has been released with a fix for this. |
Thank you. |
No, thank you for bringing this to my attention :-) |
I had no choice when our test suite broke 😝. I initially thought it was our fault for using classes marked as So maybe the |
It has already been removed. |
Oh good, sorry I didn't notice. |
Umm it's still present phpunit/src/Framework/Error/Error.php Line 15 in 21461ce
In other error classes too. |
I checked the |
In |
PHPUnit 8.3.2 has been released with a fix for this. |
Class
PHPUnit\Framework\Error\Error
has been removed in 8.3.0.The removed class was marked as
@internal
but the Testing PHP Errors mentions uses of that class. So what's the alternative?Docs for 8.3 don't seem to be up yet.
The text was updated successfully, but these errors were encountered: