/**
  * Paint PHP errors to STDERR.
  *
  * @param string $message Message of the Error
  * @return void
  * @access public
  */
 function paintError($message)
 {
     parent::paintError($message);
     $message .= $this->_getBreadcrumb();
     fwrite(STDERR, 'ERROR' . $this->separator . $message);
 }
Example #2
0
 /**
  * Paints a PHP error.
  *
  * @param string $message Message is ignored.
  * @return void
  * @access public
  */
 function paintError($message)
 {
     parent::paintError($message);
     echo "<li class='error'>\n";
     echo "<span>Error</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";
 }
Example #3
0
 /**
  * Paints a PHP error.
  *
  * @param string $message Message to be shown.
  * @return void
  * @access public
  */
 function paintError($message)
 {
     parent::paintError($message);
     echo "Exception " . $this->getExceptionCount() . "!\n{$message}\n";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     echo "\tin " . implode("\n\tin ", array_reverse($breadcrumb));
     echo "\n";
 }