mirror of
https://github.com/predis/predis.git
synced 2026-09-13 20:07:28 +00:00
Tests for Predis\ResponseError.
This commit is contained in:
@@ -130,5 +130,17 @@ class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
|
||||
$this->assertTrue($response->queued);
|
||||
$this->assertEquals(\Predis\ResponseReader::QUEUED, (string)$response);
|
||||
}
|
||||
|
||||
|
||||
/* ResponseError */
|
||||
|
||||
function testResponseError() {
|
||||
$errorMessage = 'ERROR MESSAGE';
|
||||
$response = new \Predis\ResponseError($errorMessage);
|
||||
|
||||
$this->assertTrue($response->error);
|
||||
$this->assertEquals($errorMessage, $response->message);
|
||||
$this->assertEquals($errorMessage, (string)$response);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user