toThrowableTrace() public static method

Return Exception throwable trace in array format.
public static toThrowableTrace ( Error | Exception $ex ) : string[]
$ex Error | Exception
return string[]
Example #1
0
 /**
  *
  */
 public function testStaticApiToThrowableTrace_ReturnsStackThrowable()
 {
     $prev = $this->createException('Previous');
     $ex = $this->createException('Exception', $prev);
     $this->assertThrowableTrace(Exception::toThrowableTrace($ex));
 }