phpunit icon indicating copy to clipboard operation
phpunit copied to clipboard

Failed assert() should show a backtrace

Open joachim-n opened this issue 3 years ago • 0 comments

Q A
PHPUnit version 9.5.16
PHP version 7.4.2
Installation Method Composer

Summary

If a test fails because an assert() fails, the test output only shows the assert message. There is no backtrace, unlike when a test fails because of a thrown exception.

Current behavior

How to reproduce

Expected behavior

joachim-n avatar Mar 07 '22 16:03 joachim-n