paintException() 공개 메소드

Paints a PHP exception.
public paintException ( Exception $exception )
$exception Exception Exception to display.
예제 #1
0
 function paintException($exception)
 {
     parent::paintException($exception);
     echo '<pre>' . $exception->getTraceAsString() . '</pre>';
 }
예제 #2
0
파일: AbstractTest.php 프로젝트: nexcra/cb5
 /**
  * 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";
 }