toTrace() public static method

Return Error full trace in array format.
public static toTrace ( Error | Exception $ex ) : mixed
$ex Error | Exception
return mixed
Example #1
0
 /**
  *
  */
 public function testStaticApiToTrace_ReturnsTrace()
 {
     $prev = $this->createError('Previous');
     $ex = $this->createError('Error', $prev);
     $this->assertTrace(Error::toTrace($ex));
 }