Tests for Predis\ResponseError.

This commit is contained in:
Daniele Alessandri
2010-03-10 14:18:28 +01:00
parent 83ab54e9fc
commit 90078b95c7
+12
View File
@@ -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);
}
}
?>