getThrowableData() public static method

Return throwable data in array format.
public static getThrowableData ( Error | Exception $ex, integer $offset ) : string[]
$ex Error | Exception
$offset integer
return string[]
Example #1
0
 /**
  *
  */
 public function testStaticApiGetThrowableData_ReturnsData_ForException()
 {
     $prev = $this->createException('Previous');
     $ex = $this->createException($message = 'Exception', $prev);
     $data = Throwable::getThrowableData($ex);
     $this->assertData($data);
 }