Exemple #1
0
 public function testDelete()
 {
     $this->fb->write(self::WORD);
     $this->assertTrue($this->fb->delete());
     $this->fb = null;
     // new object
     $fb = new FixedBlock(self::SHMOP_ID, 3);
     $this->assertEmpty($fb->read());
 }
 /**
  * @param string $key
  *
  * @return bool
  */
 public function remove($key)
 {
     $sh = new BlockShmop($this->getIdByKey($key), 10);
     return $sh->delete();
 }
 protected function tearDown()
 {
     $this->sh->delete();
 }