Commit dfd3f189 authored by meus's avatar meus

fixing web test runner

parent 4a2fac72
......@@ -375,15 +375,14 @@ class MyReporter extends HtmlReporter {
print '<pre>';
foreach ($this->_test->getMessages() as $message) {
print $message . '\n';
print $message;
}
print '</pre>';
$colour = ($this->_test->getFailCount() > 0 ? 'red' : 'green');
print '<div style=\'';
print 'padding: 8px; margin-top: 1em; background-color: $colour; color: white;';
print '\'>';
print $this->_test->getTestCaseCount() . ' test cases';
print ' test cases complete:\n';
print $this->_test->getTestCaseCount() . ' test cases.';
print '<strong>' . $this->_test->getPassCount() . '</strong> passes and ';
print '<strong>' . $this->_test->getFailCount() . '</strong> fails.';
print '</div>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment