public function test_zinterstore() { $this->assertEquals('zinterstore d 2 a b', $this->redis->zInterStore('d', array('a', 'b'))); $this->assertEquals('zinterstore d 2 a b weights 5 7', $this->redis->zinterstore('d', array('a', 'b'), array(5, 7))); $this->assertEquals('zinterstore d 2 a b aggregate max', $this->redis->zinterstore('d', array('a', 'b'), null, \Jamm\Memory\RedisServer::Aggregate_MAX)); $this->assertEquals('zinterstore d 2 a b weights 5 7 aggregate sum', $this->redis->zinterstore('d', array('a', 'b'), array(5, 7), \Jamm\Memory\RedisServer::Aggregate_SUM)); }