Circle Ci job does not fail when has php error when running php unit

Hello all
When I run the PHP Unit with all files, there is a PHP error, but the circle ci job is still green without fail. I have tried all the ways but can’t fix it.
PHPUnit Manual – Chapter 5. Organizing Tests
Have any of you encountered this situation? Can suggest me!
Thanks a lot!

CircleCI will report a failed job based on a none zero status/exit code being returned by the code it called. So it is possible that the code you have is writing an error message to the console, but then reporting a status/exit code of zero back to CircleCI.