示例#1
0
 public function testRename()
 {
     $reply = $this->key->rename('test2');
     $this->assertFalse($reply);
     $this->key->getRediska()->set($this->key->getName(), 1);
     $reply = $this->key->rename('test2');
     $this->assertTrue($reply);
     $this->assertEquals('test2', $this->key->getName());
 }