Exemple #1
0
 public function testDiff()
 {
     $this->rediska->addToSet('test', 123);
     $this->rediska->addToSet('test', 456);
     $this->rediska->addToSet('test2', 456);
     $values = $this->set->diff('test2');
     $this->assertEquals(array(123), $values);
     $values = $this->set->diff(new Rediska_Key_Set('test2'));
     $this->assertEquals(array(123), $values);
     $values = $this->set->diff(array('test2'));
     $this->assertEquals(array(123), $values);
 }