Return throwable stack in recursive array format.
public static getThrowableStack ( |
||
$ex | ||
$offset | integer | |
Результат | mixed |
/** * */ public function testStaticApiGetThrowableStack_ReturnsStack_ForException() { $prev = $this->createException('Previous'); $ex = $this->createException($message = 'Exception', $prev); $stack = Throwable::getThrowableStack($ex); $this->assertData($stack); $this->assertData($stack['prev']); }