public function testRemove()
 {
     $this->assertNull($this->storage->remove('foo'));
     $this->storage->set('foo', 'bar');
     $this->assertEquals('bar', $this->storage->remove('foo'));
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function reset()
 {
     $this->storage->remove($this->getStepDataKey());
     $this->currentStepNumber = $this->getFirstStepNumber();
 }
 public function testRemove_empty()
 {
     $this->storage->remove('foo');
     $this->assertFalse($this->storage->has('foo'));
 }
Ejemplo n.º 4
0
 /**
  * {@inheritDoc}
  */
 public function dropAll()
 {
     $this->storage->remove(DataManagerInterface::STORAGE_ROOT);
 }