public function testApiToString_ReturnsErrorStack() { $prev = $this->createError('Previous'); $ex = $this->createError('Error', $prev); $this->assertString((string) $ex); }