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