Prechádzať zdrojové kódy

Updated test cases

1) updated command sequence profiles
2) fixed exception test syntax error
3) Installed PHPUnit locally and successfully ran test.
nicchap 10 rokov pred
rodič
commit
0e2b7603a5

+ 1 - 1
tests/Predis/Command/StringBitPosTest.php

@@ -73,6 +73,6 @@ class StringBitPosTest extends PredisCommandTestCase
     {
         $redis = $this->getClient();
         $redis->lpush('key', 'list');
-        $redis->bitpos('key');
+        $redis->bitpos('key', 0);
     }
 }

+ 12 - 12
tests/Predis/Profile/RedisVersion280Test.php

@@ -175,18 +175,18 @@ class RedisVersion280Test extends PredisProfileTestCase
             134 => 'TIME',
             135 => 'SENTINEL',
             136 => 'SCAN',
-            137 => 'SSCAN',
-            138 => 'ZSCAN',
-            139 => 'ZLEXCOUNT',
-            140 => 'ZRANGEBYLEX',
-            141 => 'ZREMRANGEBYLEX',
-            142 => 'HSCAN',
-            143 => 'PUBSUB',
-            144 => 'PFADD',
-            145 => 'PFCOUNT',
-            146 => 'PFMERGE',
-            147 => 'COMMAND',
-            148 => 'BITPOS',
+            137 => 'BITPOS',
+            138 => 'SSCAN',
+            139 => 'ZSCAN',
+            140 => 'ZLEXCOUNT',
+            141 => 'ZRANGEBYLEX',
+            142 => 'ZREMRANGEBYLEX',
+            143 => 'HSCAN',
+            144 => 'PUBSUB',
+            145 => 'PFADD',
+            146 => 'PFCOUNT',
+            147 => 'PFMERGE',
+            148 => 'COMMAND',
         );
     }
 }

+ 12 - 12
tests/Predis/Profile/RedisVersion300Test.php

@@ -175,18 +175,18 @@ class RedisVersion300Test extends PredisProfileTestCase
             134 => 'TIME',
             135 => 'SENTINEL',
             136 => 'SCAN',
-            137 => 'SSCAN',
-            138 => 'ZSCAN',
-            139 => 'ZLEXCOUNT',
-            140 => 'ZRANGEBYLEX',
-            141 => 'ZREMRANGEBYLEX',
-            142 => 'HSCAN',
-            143 => 'PUBSUB',
-            144 => 'PFADD',
-            145 => 'PFCOUNT',
-            146 => 'PFMERGE',
-            147 => 'COMMAND',
-            148 => 'BITPOS',
+            137 => 'BITPOS',
+            138 => 'SSCAN',
+            139 => 'ZSCAN',
+            140 => 'ZLEXCOUNT',
+            141 => 'ZRANGEBYLEX',
+            142 => 'ZREMRANGEBYLEX',
+            143 => 'HSCAN',
+            144 => 'PUBSUB',
+            145 => 'PFADD',
+            146 => 'PFCOUNT',
+            147 => 'PFMERGE',
+            148 => 'COMMAND',
         );
     }
 }