Skip to content

TestDox printer does not display details about exceptions raised in before-test methods #5760

Closed
@BladeMF

Description

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.

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions