You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a feature request. Currently, if some test calls exit, phpunit stops and ends with a zero exit code.
This is dangerous as phpunit will pass in CI even if the test is broken and later tests did not run at all.
I propose phpunit to register a shutdown function and when it is invoked before phpunit completes, exit with a non-zero code there. This way, the exit code will be properly non-zero.
This is a feature request. Currently, if some test calls
exit, phpunit stops and ends with a zero exit code.This is dangerous as phpunit will pass in CI even if the test is broken and later tests did not run at all.
I propose phpunit to register a shutdown function and when it is invoked before phpunit completes, exit with a non-zero code there. This way, the exit code will be properly non-zero.
demo: https://3v4l.org/hf36C