paintError() public method

Deals with PHP 4 throwing an error.
public paintError ( string $message )
$message string Text of error formatted by the test case.
Example #1
0
 /**
  * Paints a PHP error.
  * @param string $message Message is ignored.
  */
 public function paintError($message)
 {
     // Explicitly call grandparent, not HtmlReporter::paintError.
     SimpleScorer::paintError($message);
     print "<span class=\"fail\">Exception</span>: <br />\n";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode(" -&gt; ", $breadcrumb);
     print "<br />\n<strong>" . $this->htmlEntities($message) . "</strong><br />\n";
     print "<pre>\n";
 }
 /**
  * Called when an error (uncaught exception or PHP error) needs to be output.
  */
 function paintError($message)
 {
     // Explicitly call grandparent, not parent::paintError.
     SimpleScorer::paintError($message);
     $this->_paintPassFail('exception', $message);
 }
Example #3
0
 /**
  *    Paints a PHP error.
  *    @param string $message        Message is ignored.
  *    @access public
  */
 function paintError($message)
 {
     SimpleScorer::paintError($message);
     print "<span class=\"fail\"><b>EXCEPTION</b></span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode(" -&gt; ", $breadcrumb);
     print " -&gt; <strong>" . $this->_htmlEntities($message) . "</strong><br />\n";
 }