mirror of
https://github.com/predis/predis.git
synced 2026-09-05 15:42:31 +00:00
Test suite: add a test for the LIMIT modifier of ZRANGEBYSCORE configured via associative array.
This commit is contained in:
@@ -1203,6 +1203,13 @@ class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
|
||||
$this->redis->zrangebyscore('zset', 10, 20, array('limit' => array(1, 2)))
|
||||
);
|
||||
|
||||
$this->assertEquals(
|
||||
array('d', 'e'),
|
||||
$this->redis->zrangebyscore('zset', 10, 20, array(
|
||||
'limit' => array('offset' => 1, 'count' => 2)
|
||||
))
|
||||
);
|
||||
|
||||
$this->assertEquals(
|
||||
array(array('d', 20), array('e', 20)),
|
||||
$this->redis->zrangebyscore('zset', 10, 20, array(
|
||||
|
||||
Reference in New Issue
Block a user