toStackTrace() public static method

Return Exception stack trace in array format.
public static toStackTrace ( Error | Exception $ex ) : string[]
$ex Error | Exception
return string[]
Beispiel #1
0
 /**
  *
  */
 public function testStaticApiToStackTrace_ReturnsStackTrace()
 {
     $prev = $this->createException('Previous');
     $ex = $this->createException('Exception', $prev);
     $this->assertStackTrace(Exception::toStackTrace($ex));
 }