/** * Paint fail faildetail to STDERR. * * @param string $message Message of the fail. * @return void * @access public */ function paintFail($message) { parent::paintFail($message); $message .= $this->_getBreadcrumb(); fwrite(STDERR, 'FAIL' . $this->separator . $message); }
/** * 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. * @return void * @access public */ function paintFail($message) { parent::paintFail($message); echo "<li class='fail'>\n"; echo "<span>Failed</span>"; echo "<div class='msg'>" . $this->_htmlEntities($message) . "</div>\n"; $breadcrumb = $this->getTestList(); array_shift($breadcrumb); echo "<div>" . implode(" -> ", $breadcrumb) . "</div>\n"; echo "</li>\n"; }
/** * Paints the test failure as a stack trace. * * @param string $message Failure message displayed in * the context of the other tests. * @return void * @access public */ function paintFail($message) { parent::paintFail($message); echo $this->getFailCount() . ") {$message}\n"; $breadcrumb = $this->getTestList(); array_shift($breadcrumb); echo "\tin " . implode("\n\tin ", array_reverse($breadcrumb)); echo "\n"; }