public static function toTrace($ex)
{
return Throwable::getThrowableStack($ex);
}
/** * */ public function testStaticApiToTrace_ReturnsTrace() { $prev = $this->createError('Previous'); $ex = $this->createError('Error', $prev); $this->assertTrace(Error::toTrace($ex)); }