/** * @group redis-hashes */ public function testHashDelete() { $this->assertSame(0, $this->client->hdel('foo', 'bar')); $this->client->hset('foo', 'hello', 'world'); $this->client->hset('foo', 'bar', 'baz'); $this->client->hset('foo', 'red', 'blue'); $this->assertSame(2, $this->client->hdel('foo', 'hello', 'bar', 'derp')); $this->assertEquals(array('red' => 'blue'), $this->client->hgetall('foo')); }