Fix test runner to show errors as well as assertion failures

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60428 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-08-11 23:17:32 +00:00
parent 12a62b9f62
commit 72b9d12aae

View File

@ -263,7 +263,7 @@ class SapphireTestReporter implements PHPUnit_Framework_TestListener {
foreach($suite['tests'] as $test) {
$testCount++;
($test['status'] == 1) ? $passCount++ : $failCount++;
if ($test['status'] == -1) {
if ($test['status'] != 1) {
echo "<div class=\"failure\"><span>&otimes; ". $this->testNameToPhrase($test['name']) ."</span><br>";
echo "<pre>".htmlentities($test['message'])."</pre><br>";
echo "<code>In line {$test['exception']['line']} of {$test['exception']['file']}</code></div>";