public function testHash() { $this->client->hset('myhash', 'field1', 1); $this->client->hset('myhash', 'field2', 'hello'); $this->client->hset('myhash', 'field3', 'world'); $ret = $this->client->hmget('myhash', 'field1', 'field2', 'field3', 'field4'); $this->assertEquals(1, $ret[0]); $this->assertEquals('hello', $ret[1]); $this->assertEquals('world', $ret[2]); $this->assertEquals(null, $ret[3]); }