/**
  * Remove an instance
  * 
  * @param Instance $instance
  */
 public function remove(Instance $instance)
 {
     $key = $this->getHash() . $instance->getId();
     if ($this->getFileManager()->has($key)) {
         $this->getFileManager()->delete($key);
     }
 }
示例#2
0
 /**
  * @covers Ringo\PhpRedmon\Model\Instance::getId
  * @covers Ringo\PhpRedmon\Model\Instance::setId
  */
 public function testGetId()
 {
     $this->assertEmpty($this->object->getId());
     $this->object->setId(2);
     $this->assertEquals(2, $this->object->getId());
 }