Tests for Predis\ResponseQueued.

This commit is contained in:
Daniele Alessandri
2010-03-10 14:18:15 +01:00
parent ea9f83d4c0
commit 83ab54e9fc
+9
View File
@@ -121,5 +121,14 @@ class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
$this->assertTrue($profile->supportsCommand($cmdId));
$this->assertType($cmdClass, $profile->createCommand($cmdId));
}
/* ResponseQueued */
function testResponseQueued() {
$response = new \Predis\ResponseQueued();
$this->assertTrue($response->queued);
$this->assertEquals(\Predis\ResponseReader::QUEUED, (string)$response);
}
}
?>