Skip to content

Commit 36f5f76

Browse files
committed
INFO COMMANDSTATS is new in 2.6.0
1 parent 5ee3c84 commit 36f5f76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/TestRedis.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,6 +2037,7 @@ public function testHashes() {
20372037
$this->redis->hSet('h', 'y', 'not-a-number');
20382038
$this->assertTrue(FALSE === $this->redis->hIncrBy('h', 'y', 1));
20392039

2040+
if (version_compare($this->version, "2.5.0", "ge")) {
20402041
// hIncrByFloat
20412042
$this->redis->delete('h');
20422043
$this->assertTrue(1.5 === $this->redis->hIncrByFloat('h','x', 1.5));
@@ -2045,6 +2046,7 @@ public function testHashes() {
20452046

20462047
$this->redis->hset('h','y','not-a-number');
20472048
$this->assertTrue(FALSE === $this->redis->hIncrByFloat('h', 'y', 1.5));
2049+
}
20482050

20492051
// hmset
20502052
$this->redis->delete('h');

0 commit comments

Comments
 (0)