function paintException($exception) { parent::paintException($exception); echo '<pre>' . $exception->getTraceAsString() . '</pre>'; }
/** * 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(" -> ", $breadcrumb); $message = 'Unexpected exception of type [' . get_class($exception) . '] with message [' . $exception->getMessage() . '] in [' . $exception->getFile() . ' line ' . $exception->getLine() . ']'; print " -> <strong>" . $this->htmlEntities($message) . "</strong><br />\n"; }