Does an overall PHPunit Test Result of 0 or 1 (True / False) exist
PHPunit can create a multitude of result reports, but I am having trouble figuring out how to get an overall resul开发者_JAVA百科t for all tests.
I think you can check the exit status of the phpunit command In your shell, try
phpunit successfulTest.php
echo $?
phpunit failingTest.php
echo $?
The result should be different. I figured this out by remembering how the phpundercontrol guys wrote their phpunit target
精彩评论