Example #1
0
 /**
  * @covers Brickoo\Component\Common\Registry::override
  * @covers Brickoo\Component\Common\Registry::set
  * @covers Brickoo\Component\Common\Exception\ReadonlyModeException
  * @expectedException \Brickoo\Component\Common\Exception\ReadonlyModeException
  */
 public function testTryingTOOverrideReadonlyKeyThrowsException()
 {
     $this->registry->register("name", "john");
     $this->registry->setReadOnly(true);
     $this->registry->override("name", "wayne");
 }