Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2022-10-11 08:57:10 +0300
committerMichael Grunder <michael.grunder@gmail.com>2022-10-11 08:57:36 +0300
commit457953f4fe027a856e951c43095f2549a937cdff (patch)
tree2b5fffd1b7940eb4df13731b5d58265c7a95596f /tests
parent3b0d8b77810a39a524b7c287d7ad646e93c20e60 (diff)
Refactor and fix XPENDING handler
Fixes #2128
Diffstat (limited to 'tests')
-rw-r--r--tests/RedisTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/RedisTest.php b/tests/RedisTest.php
index 044c7884..c55f65a8 100644
--- a/tests/RedisTest.php
+++ b/tests/RedisTest.php
@@ -6604,6 +6604,10 @@ class Redis_Test extends TestSuite
$this->redis->xAck('s', 'group', [$id]);
}
}
+
+ /* Ensure we can have NULL trailing arguments */
+ $this->assertTrue(is_array($this->redis->xpending('s', 'group', '-', '+', 1, null)));
+ $this->assertTrue(is_array($this->redis->xpending('s', 'group', NULL, NULL, -1, NULL)));
}
public function testXDel() {