/**
  * 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);
 }
示例#2
0
 /**
  * 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(" -&gt; ", $breadcrumb) . "</div>\n";
     echo "</li>\n";
 }
示例#3
0
 /**
  * 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";
 }