paintException() public méthode

Paints a PHP exception.
public paintException ( Exception $exception )
$exception Exception Exception to display.
 function paintException($exception)
 {
     parent::paintException($exception);
     echo '<pre>' . $exception->getTraceAsString() . '</pre>';
 }
Exemple #2
0
 /**
  * Paint exception.
  *
  * @access public
  * @param  \Exception $exception
  * @return void
  */
 public function paintException($exception)
 {
     parent::paintException($exception);
     print "<span class=\"fail\">Exception</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode(" -&gt; ", $breadcrumb);
     $message = 'Unexpected exception of type [' . get_class($exception) . '] with message [' . $exception->getMessage() . '] in [' . $exception->getFile() . ' line ' . $exception->getLine() . ']';
     print " -&gt; <strong>" . $this->htmlEntities($message) . "</strong><br />\n";
 }