Example #1
0
 public function testUnion()
 {
     $a = new Set('SetA');
     $a->setClient($this->getRedisClient());
     $a->add(array(1, 2, 3, 4));
     $b = new Set('SetB');
     $b->setClient($this->getRedisClient());
     $b->add(array(3, 4, 5, 6, 7, 8));
     $this->assertEquals(array(1, 2, 3, 4, 5, 6, 7, 8), $a->union($b));
 }