assertInstanceOf('Predis\Response\ErrorInterface', $error); $this->assertInstanceOf('Predis\Response\ResponseInterface', $error); } /** * @group disconnected */ public function testErrorMessage(): void { $error = new Error(self::ERR_WRONG_KEY_TYPE); $this->assertEquals(self::ERR_WRONG_KEY_TYPE, $error->getMessage()); } /** * @group disconnected */ public function testErrorType(): void { $exception = new Error(self::ERR_WRONG_KEY_TYPE); $this->assertEquals('ERR', $exception->getErrorType()); } /** * @group disconnected */ public function testToString(): void { $error = new Error(self::ERR_WRONG_KEY_TYPE); $this->assertEquals(self::ERR_WRONG_KEY_TYPE, (string) $error); } }