public static function toString($ex) { return implode("\n", ["\t" . 'Throwable trace:', static::toThrowableString($ex), "\t" . 'Stack trace:', static::toStackString($ex)]); }
/** * */ public function testStaticApiToString_ReturnsErrorStack() { $prev = $this->createError('Previous'); $ex = $this->createError('Error', $prev); $this->assertSame((string) $ex, Error::toString($ex)); }