Thank you for code, it helps, but there is one important thing missing that got us quite confused :
The command line exit code was always 0 no matter what, which break the backward compatibility (and out CI/CD). As a matter of fact, the return code is return by the run method so you just have to wrap your line with and exit() :
You should IMHO make the Following change to your provided code :
Hi!. I am Manuel Canga, a web back-end developer specializing in tailor-made web applications with over 20 years of experience. I am a Zend Certified PHP Engineer and a native Spanish speaker.
Thank you for code, it helps, but there is one important thing missing that got us quite confused :
The command line exit code was always 0 no matter what, which break the backward compatibility (and out CI/CD). As a matter of fact, the return code is return by the
run
method so you just have to wrap your line with andexit()
:You should IMHO make the Following change to your provided code :
exit((new \PHPUnit\TextUI\Application())->run($GLOBALS['argv']));
Thank you again !
You're right. Thanks you for fixing my code!