toStackString() public static method

Return Exception stack trace in string format.
public static toStackString ( Error | Exception $ex ) : string
$ex Error | Exception
return string
示例#1
0
 /**
  *
  */
 public function testStaticApiToStackString_ReturnsStackTraceAsString()
 {
     $prev = $this->createException('Previous');
     $ex = $this->createException('Exception', $prev);
     $this->assertStackString(Exception::toStackString($ex));
 }