/**
  * Paint exception faildetail to STDERR.
  *
  * @param object $exception Exception instance
  * @return void
  * @access public
  */
 function paintException($exception)
 {
     parent::paintException($exception);
     $message = sprintf('Unexpected exception of type [%s] with message [%s] in [%s] line [%s]', get_class($exception), $exception->getMessage(), $exception->getFile(), $exception->getLine());
     $message .= $this->_getBreadcrumb();
     fwrite(STDERR, 'EXCEPTION' . $this->separator . $message);
 }
Esempio n. 2
0
 /**
  * Paints a PHP exception.
  *
  * @param Exception $exception Exception to display.
  * @return void
  * @access public
  */
 function paintException($exception)
 {
     parent::paintException($exception);
     echo "<li class='fail'>\n";
     echo "<span>Exception</span>";
     $message = 'Unexpected exception of type [' . get_class($exception) . '] with message [' . $exception->getMessage() . '] in [' . $exception->getFile() . ' line ' . $exception->getLine() . ']';
     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";
 }
Esempio n. 3
0
 /**
  * Paints a PHP exception.
  *
  * @param Exception $exception Exception to describe.
  * @return void
  * @access public
  */
 function paintException($exception)
 {
     parent::paintException($exception);
     $message = 'Unexpected exception of type [' . get_class($exception) . '] with message [' . $exception->getMessage() . '] in [' . $exception->getFile() . ' line ' . $exception->getLine() . ']';
     echo "Exception " . $this->getExceptionCount() . "!\n{$message}\n";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     echo "\tin " . implode("\n\tin ", array_reverse($breadcrumb));
     echo "\n";
 }