Skip to content

Commit 81f44dc

Browse files
Skip ZRANGEBYLEX check if use is running Redis < 2.8.9
1 parent f65b5e2 commit 81f44dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/RedisTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,6 +2289,12 @@ public function testZX() {
22892289
}
22902290

22912291
public function testZRangeByLex() {
2292+
/* ZRANGEBYLEX available on versions >= 2.8.9 */
2293+
if(version_compare($this->version, "2.8.9", "lt")) {
2294+
$this->MarkTestSkipped();
2295+
return;
2296+
}
2297+
22922298
$this->redis->del('key');
22932299
foreach(range('a', 'g') as $c) {
22942300
$this->redis->zAdd('key', 0, $c);

0 commit comments

Comments
 (0)