TestDox printer does not display details about exceptions raised in before-test methods - setUpBeforeClass #5976
Labels
feature/test-runner
CLI test runner
feature/testdox
The TextDox printer/formatter
type/bug
Something is broken
Hello,
This is the same problem highlighted in #5760 but when the throws occurs in the setUpBeforeClass static method.
I forked the repository and added another class for the tests (MyTestWithSetupBeforeClassThrows) - https://github.com/Dr-Shadow/phpunit-setupbeforeclass-exception
There could be other cases I could be missing
Case without testdox - OK
command :
php vendor/bin/phpunit tests/MyTestWithSetupBeforeClassThrows.php tests/MyTestWithSetupThrows.php
output :
Case with testdox - KO
command :
php vendor/bin/phpunit --testdox tests/MyTestWithSetupBeforeClassThrows.php tests/MyTestWithSetupThrows.php
output :
Problem
Exceptions thrown in setUpBeforeClass won't get displayed in the test results with --testdox
The text was updated successfully, but these errors were encountered: