소스 검색

Updated test cases

1) updated command sequence profiles
2) fixed exception test syntax error
3) Installed PHPUnit locally and successfully ran test.
nicchap 10 년 전
부모
커밋
0e2b7603a5
3개의 변경된 파일25개의 추가작업 그리고 25개의 파일을 삭제
  1. 1 1
      tests/Predis/Command/StringBitPosTest.php
  2. 12 12
      tests/Predis/Profile/RedisVersion280Test.php
  3. 12 12
      tests/Predis/Profile/RedisVersion300Test.php

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