Jamm\Memory\Tests\TestRedisServer::test_zUnionStore PHP Method

test_zUnionStore() public method

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