PHPunit can create a multitude of result reports, but I am having trouble figuring out how to get an overall result for all tests.
A:
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
greg0ire
2010-07-19 15:49:01
That works as well as something like this: exec('phpunit AllTests.php', $result = array(), $status);$status contains the exit code.
Anthony
2010-07-19 18:47:18