Test suite: add a test for the LIMIT modifier of ZRANGEBYSCORE configured via associative array.

This commit is contained in:
Daniele Alessandri
2010-07-11 17:02:33 +02:00
parent 618708b853
commit 1520e2c48b
+7
View File
@@ -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(