-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
TestDox printer does not display details about exceptions raised in before-test methods #5760
Comments
Thank you for your report. Please provide a minimal, self-contained, reproducing test case that shows the problem you are reporting. Without such a minimal, self-contained, reproducing test case I will not be able to investigate this issue. |
There - https://github.com/BladeMF/phpunit-setup-exception. The interesting bit - the Case 1 - A throw in the test bodycommand
output
Case 2 - A throw in the
|
@BladeMF thank you for the testing environment! after playing around with it, I have found the issue to be with the |
setUp
TestDox
printer does not display details about exceptions raised in before-test methods
@DanteB918 Thank you for investigating. |
TestDox
printer does not display details about exceptions raised in before-test methods
@sebastianbergmann , thank you. |
Since PHPUnit 10, exceptions that are thrown in
setUp
(as opposed to the actual test body) are not displayed although the test is marked as "E", forcing you to write your own try/catch and see what they are. Since setting up is part of the test I don't think why it should be treated differently. Saying there was an error but not explaining what the error was is most unhelpful.The text was updated successfully, but these errors were encountered: