예제 #1
0
파일: Set.php 프로젝트: utachkin/Rediska
 public function testMove()
 {
     $this->rediska->addToSet('test', 123);
     $reply = $this->set->move('test2', 123);
     $this->assertTrue($reply);
     $reply = $this->rediska->existsInSet('test', 123);
     $this->assertFalse($reply);
     $reply = $this->rediska->existsInSet('test2', 123);
     $this->assertTrue($reply);
     $set2 = new Rediska_Key_Set('test2');
     $set2->move($this->set, 123);
     $reply = $this->rediska->existsInSet('test2', 123);
     $this->assertFalse($reply);
     $reply = $this->rediska->existsInSet('test', 123);
     $this->assertTrue($reply);
 }