diff options
Diffstat (limited to 'tests/TestRedis.php')
-rw-r--r-- | tests/TestRedis.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/TestRedis.php b/tests/TestRedis.php index 27ff047d..b93cef10 100644 --- a/tests/TestRedis.php +++ b/tests/TestRedis.php @@ -2285,6 +2285,9 @@ class Redis_Test extends TestSuite // Test with an array populated with things we can't use as keys $this->assertTrue($this->redis->hmget('h', Array(false,NULL,false)) === FALSE); + // Test with some invalid keys mixed in (which should just be ignored) + $this->assertTrue(array('x'=>'123','y'=>'456','z'=>'abc') === $this->redis->hMget('h',Array('x',null,'y','','z',false))); + // hmget/hmset with numeric fields $this->redis->del('h'); $this->assertTrue(TRUE === $this->redis->hMset('h', array(123 => 'x', 'y' => 456))); |