function paintError($message) { ob_start(); parent::paintError($message); ob_get_clean(); print "<div class='box' style='margin:auto;width:95%;margin-bottom:20px;'>\n"; print "<span class=\"fail\">Exception</span>: "; $breadcrumb = $this->getTestList(); array_shift($breadcrumb); $breadcrumb[count($breadcrumb) - 1] = str_replace(array('test_', '_'), array('', ' '), $breadcrumb[count($breadcrumb) - 1]); print implode("->", $breadcrumb) . '<br>'; print "<strong>" . $this->htmlEntities($message) . "</strong>\n"; print "</div>\n"; }
/** * Paint error. * * @access public * @param string $message * @return void */ public function paintError($message) { parent::paintError($message); print "<span class=\"fail\">Exception</span>: "; $breadcrumb = $this->getTestList(); array_shift($breadcrumb); print implode(" -> ", $breadcrumb); print " -> <strong>" . $this->htmlEntities($message) . "</strong><br />\n"; }