public function testStaticApiToString_ReturnsExceptionStack() { $prev = $this->createException('Previous'); $ex = $this->createException('Exception', $prev); $this->assertSame((string) $ex, Exception::toString($ex)); }