simpletest updates broke things...
This commit is contained in:
parent
070ba8c276
commit
cf5e35bd2d
1 changed files with 5 additions and 4 deletions
|
@ -10,7 +10,8 @@ class SCoreReporter extends HtmlReporter {
|
||||||
|
|
||||||
public function SCoreReporter(Page $page) {
|
public function SCoreReporter(Page $page) {
|
||||||
$this->page = $page;
|
$this->page = $page;
|
||||||
$this->_fails = 0;
|
$this->fails = 0;
|
||||||
|
$this->exceptions = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function paintHeader($test_name) {
|
function paintHeader($test_name) {
|
||||||
|
@ -20,7 +21,7 @@ class SCoreReporter extends HtmlReporter {
|
||||||
|
|
||||||
function paintFooter($test_name) {
|
function paintFooter($test_name) {
|
||||||
//parent::paintFooter($test_name);
|
//parent::paintFooter($test_name);
|
||||||
if(($this->getFailCount() + $this->getExceptionCount()) > 0) {
|
if(($this->fails + $this->exceptions) > 0) {
|
||||||
$style = "background: red;";
|
$style = "background: red;";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -28,8 +29,8 @@ class SCoreReporter extends HtmlReporter {
|
||||||
}
|
}
|
||||||
$html = "<div style=\"padding: 4px; $style\">".
|
$html = "<div style=\"padding: 4px; $style\">".
|
||||||
$this->getPassCount() . " passes, " .
|
$this->getPassCount() . " passes, " .
|
||||||
$this->getFailCount() . " failures, " .
|
$this->fails . " failures, " .
|
||||||
$this->getExceptionCount() . " exceptions" .
|
$this->exceptions . " exceptions" .
|
||||||
"<br>Passed modules: " . implode(", ", $this->clear_modules) .
|
"<br>Passed modules: " . implode(", ", $this->clear_modules) .
|
||||||
"</div>";
|
"</div>";
|
||||||
$this->page->add_block(new Block("Results", $html, "main", 40));
|
$this->page->add_block(new Block("Results", $html, "main", 40));
|
||||||
|
|
Reference in a new issue