paintFail() public méthode

Increments the fail count.
public paintFail ( string $message )
$message string Message is ignored.
 /**
  * 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());
 }
Exemple #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.
  *    @access public
  */
 function paintFail($message)
 {
     SimpleScorer::paintFail($message);
     print "<span class=\"fail\"><b>FAIL</b></span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode(" -&gt; ", $breadcrumb);
     print " -&gt; " . $this->_htmlEntities($message) . "<br />\n";
 }