Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 03d5a98

Browse files
Add a unit test for the scenario described in phpredis#379
1 parent 1a7952d commit 03d5a98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/TestRedis.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2282,6 +2282,8 @@ public function testHashes() {
22822282
$this->assertFalse(array(123 => 'x') === $this->redis->hMget('h', array(123)));
22832283
$this->assertTrue(array(123 => FALSE) === $this->redis->hMget('h', array(123)));
22842284

2285+
// Test with an array populated with things we can't use as keys
2286+
$this->assertTrue($this->redis->hmget('h', Array(false,NULL,false)) === FALSE);
22852287

22862288
// hmget/hmset with numeric fields
22872289
$this->redis->del('h');

0 commit comments

Comments
 (0)