Exemple #1
0
 /**
  * @depends testWriteAndRead
  */
 public function testRename()
 {
     $adapter = new Apc(self::PREFIX);
     $adapter->write(self::KEY, null);
     $adapter->rename(self::KEY, 'new-key');
     $this->assertTrue($adapter->exists('new-key'));
     $this->assertFalse($adapter->exists(self::KEY));
 }