/** * @expectedException \LogicException */ public function testRemove() { $bag = new FrozenParameterBag(array('foo' => 'bar')); $bag->remove('foo'); }
/** * Returns whether a parameter is defined. This method does not consider * parameters from the service container, regardless of its availability. * * @see Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::has() */ public function has($name) { $this->initialize(); return parent::has($name); }
/** * @covers Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag::add * @expectedException \LogicException */ public function testAdd() { $bag = new FrozenParameterBag(array()); $bag->add(array()); }
/** * {@inheritDoc} */ public function has($name) { return array_key_exists($name, $GLOBALS['conf']) || parent::has($name); }