public function testStaticApiGetThrowableData_ReturnsData_ForError() { $prev = $this->createError('Previous'); $ex = $this->createError($message = 'Exception', $prev); $data = Throwable::getThrowableData($ex); $this->assertData($data); }