We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ee3c84 commit 36f5f76Copy full SHA for 36f5f76
tests/TestRedis.php
@@ -2037,6 +2037,7 @@ public function testHashes() {
2037
$this->redis->hSet('h', 'y', 'not-a-number');
2038
$this->assertTrue(FALSE === $this->redis->hIncrBy('h', 'y', 1));
2039
2040
+ if (version_compare($this->version, "2.5.0", "ge")) {
2041
// hIncrByFloat
2042
$this->redis->delete('h');
2043
$this->assertTrue(1.5 === $this->redis->hIncrByFloat('h','x', 1.5));
@@ -2045,6 +2046,7 @@ public function testHashes() {
2045
2046
2047
$this->redis->hset('h','y','not-a-number');
2048
$this->assertTrue(FALSE === $this->redis->hIncrByFloat('h', 'y', 1.5));
2049
+ }
2050
2051
// hmset
2052
0 commit comments