From cf5e35bd2dfaa3708f79624152b8fa69bc7fb065 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 1 Apr 2012 16:41:05 +0100 Subject: [PATCH] simpletest updates broke things... --- ext/simpletest/theme.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ext/simpletest/theme.php b/ext/simpletest/theme.php index 4403804a..3db4f54f 100644 --- a/ext/simpletest/theme.php +++ b/ext/simpletest/theme.php @@ -10,7 +10,8 @@ class SCoreReporter extends HtmlReporter { public function SCoreReporter(Page $page) { $this->page = $page; - $this->_fails = 0; + $this->fails = 0; + $this->exceptions = 0; } function paintHeader($test_name) { @@ -20,7 +21,7 @@ class SCoreReporter extends HtmlReporter { function paintFooter($test_name) { //parent::paintFooter($test_name); - if(($this->getFailCount() + $this->getExceptionCount()) > 0) { + if(($this->fails + $this->exceptions) > 0) { $style = "background: red;"; } else { @@ -28,8 +29,8 @@ class SCoreReporter extends HtmlReporter { } $html = "
". $this->getPassCount() . " passes, " . - $this->getFailCount() . " failures, " . - $this->getExceptionCount() . " exceptions" . + $this->fails . " failures, " . + $this->exceptions . " exceptions" . "
Passed modules: " . implode(", ", $this->clear_modules) . "
"; $this->page->add_block(new Block("Results", $html, "main", 40));