From 0e2b7603a54e3a2ee8291a788f67c2c546ff3e43 Mon Sep 17 00:00:00 2001 From: nicchap Date: Sat, 20 Dec 2014 12:12:04 -0500 Subject: [PATCH] Updated test cases 1) updated command sequence profiles 2) fixed exception test syntax error 3) Installed PHPUnit locally and successfully ran test. --- tests/Predis/Command/StringBitPosTest.php | 2 +- tests/Predis/Profile/RedisVersion280Test.php | 24 ++++++++++---------- tests/Predis/Profile/RedisVersion300Test.php | 24 ++++++++++---------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/tests/Predis/Command/StringBitPosTest.php b/tests/Predis/Command/StringBitPosTest.php index 5a9f557f..bbc669fd 100644 --- a/tests/Predis/Command/StringBitPosTest.php +++ b/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); } } diff --git a/tests/Predis/Profile/RedisVersion280Test.php b/tests/Predis/Profile/RedisVersion280Test.php index 6285eb4f..11ab7d6e 100644 --- a/tests/Predis/Profile/RedisVersion280Test.php +++ b/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', ); } } diff --git a/tests/Predis/Profile/RedisVersion300Test.php b/tests/Predis/Profile/RedisVersion300Test.php index ad4c0685..c7fc4b73 100644 --- a/tests/Predis/Profile/RedisVersion300Test.php +++ b/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', ); } }