Example #1
0
 /**
  * @covers Brickoo\Component\Common\Registry::unregister
  * @covers Brickoo\Component\Common\Exception\IdentifierLockedException
  * @expectedException \Brickoo\Component\Common\Exception\IdentifierLockedException
  */
 public function testTryingToUnregisterLockedKeyThrowsException()
 {
     $this->registry->register("name", "john");
     $this->registry->lock("name");
     $this->registry->unregister("name");
 }