From 83ab54e9fc100dbbf32e0ea5ab6c497cd3a218a0 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Wed, 10 Mar 2010 14:18:15 +0100 Subject: [PATCH] Tests for Predis\ResponseQueued. --- test/PredisClientFeatures.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/PredisClientFeatures.php b/test/PredisClientFeatures.php index c2c181e2..a5de66bc 100644 --- a/test/PredisClientFeatures.php +++ b/test/PredisClientFeatures.php @@ -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); + } } ?> \ No newline at end of file