1
0
mirror of synced 2025-01-17 22:11:41 +03:00

fixing web test runner

This commit is contained in:
meus 2007-09-04 13:19:42 +00:00
parent 4a2fac7218
commit dfd3f18987

View File

@ -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>';