Przeglądaj źródła

Tests for Predis\ResponseQueued.

Daniele Alessandri 15 lat temu
rodzic
commit
83ab54e9fc
1 zmienionych plików z 9 dodań i 0 usunięć
  1. 9 0
      test/PredisClientFeatures.php

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