Skip to content

Commit e839d24

Browse files
committed
INCRBYFLOAT new in 2.6.0
1 parent 0ad8482 commit e839d24

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/TestRedis.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,14 @@ public function testIncr()
383383

384384
$this->redis->incr('key');
385385
$this->assertTrue("abc" === $this->redis->get('key'));
386+
}
386387

387-
// incrbyfloat
388+
public function testIncrByFloat()
389+
{
390+
// incrbyfloat is new in 2.6.0
391+
if (version_compare($this->version, "2.5.0", "lt")) {
392+
return;
393+
}
388394

389395
$this->redis->delete('key');
390396

0 commit comments

Comments
 (0)