Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-08-31 18:14:35 +0400
committerRemi Collet <fedora@famillecollet.com>2012-08-31 18:14:35 +0400
commit36f5f76786e9cf3f538d6f1b1dd0d42f11ac5964 (patch)
tree57bfacf707a69a69937ccf3c4cc480725797f883 /tests
parent5ee3c840cbf09363e0a04849708653b176fd4fb9 (diff)
INFO COMMANDSTATS is new in 2.6.0
Diffstat (limited to 'tests')
-rw-r--r--tests/TestRedis.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/TestRedis.php b/tests/TestRedis.php
index a6215efd..ba27cdd7 100644
--- a/tests/TestRedis.php
+++ b/tests/TestRedis.php
@@ -2037,6 +2037,7 @@ class Redis_Test extends TestSuite
$this->redis->hSet('h', 'y', 'not-a-number');
$this->assertTrue(FALSE === $this->redis->hIncrBy('h', 'y', 1));
+ if (version_compare($this->version, "2.5.0", "ge")) {
// hIncrByFloat
$this->redis->delete('h');
$this->assertTrue(1.5 === $this->redis->hIncrByFloat('h','x', 1.5));
@@ -2045,6 +2046,7 @@ class Redis_Test extends TestSuite
$this->redis->hset('h','y','not-a-number');
$this->assertTrue(FALSE === $this->redis->hIncrByFloat('h', 'y', 1.5));
+ }
// hmset
$this->redis->delete('h');