mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
12a62b9f62
commit
72b9d12aae
@ -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>⊗ ". $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>";
|
||||
|
Loading…
Reference in New Issue
Block a user