page = $page; $this->fails = 0; $this->exceptions = 0; } function paintHeader($test_name) { // nowt //parent::paintHeader($test_name); } function paintFooter($test_name) { global $page; //parent::paintFooter($test_name); if(($this->fails + $this->exceptions) > 0) { $style = "background: red;"; } else { $style = "background: green;"; } $html = "
$link"; $page->add_block(new Block($name, $this->current_html, "main", 50)); $this->current_html = ""; } } function paintFail($message) { //parent::paintFail($message); $this->fails++; // manually do the grandparent behaviour $message = str_replace(getcwd(), "...", $message); $this->current_html .= "
Fail: $message"; } function paintException($message) { //parent::paintFail($message); $this->exceptions++; // manually do the grandparent behaviour $message = str_replace(getcwd(), "...", $message); $this->current_html .= "
Exception: $message"; } } /** @private */ class SCoreCLIReporter extends TextReporter { } ?>