Эх сурвалжийг харах

Tests for Predis\ResponseQueued.

Daniele Alessandri 15 жил өмнө
parent
commit
83ab54e9fc

+ 9 - 0
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);
+    }
 }
 ?>