/** * @group disconnected */ public function testToErrorResponse() { $exception = new ServerException(self::ERR_WRONG_KEY_TYPE); $error = $exception->toErrorResponse(); $this->assertInstanceOf('Predis\\Response\\Error', $error); $this->assertEquals($exception->getMessage(), $error->getMessage()); $this->assertEquals($exception->getErrorType(), $error->getErrorType()); }