phpunit
phpunit copied to clipboard
Failed assert() should show a backtrace
| 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.