/** * Called when a fail needs to be output. */ function paintFail($message) { // Explicitly call grandparent, not parent::paintFail. SimpleScorer::paintFail($message); $this->_paintPassFail('fail', $message, debug_backtrace()); }
/** * Paints the test failure with a breadcrumbs * trail of the nesting test suites below the * top level test. * @param string $message Failure message displayed in * the context of the other tests. * @access public */ function paintFail($message) { SimpleScorer::paintFail($message); print "<span class=\"fail\"><b>FAIL</b></span>: "; $breadcrumb = $this->getTestList(); array_shift($breadcrumb); print implode(" -> ", $breadcrumb); print " -> " . $this->_htmlEntities($message) . "<br />\n"; }