public function testZRemRangeByScore() { $key = 'foo'; $this->_client->zAdd($key, 1, 'foo'); $this->_client->zAdd($key, 1.5, 'bar'); $this->_client->zAdd($key, 2, 'foobar'); $this->assertSame(array('foo', 'bar', 'foobar'), $this->_client->zRangeByScore($key, '1', '2')); $this->_client->zRemRangeByScore($key, '1.2', '1.8'); $this->assertSame(array('foo', 'foobar'), $this->_client->zRangeByScore($key, '1', '2')); }