You are here

public function FrozenParameterBagTest::testSet in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ParameterBag/FrozenParameterBagTest.php \Symfony\Component\DependencyInjection\Tests\ParameterBag\FrozenParameterBagTest::testSet()

@covers Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag::set @expectedException \LogicException

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ParameterBag/FrozenParameterBagTest.php, line 45

Class

FrozenParameterBagTest

Namespace

Symfony\Component\DependencyInjection\Tests\ParameterBag

Code

public function testSet() {
  $bag = new FrozenParameterBag(array());
  $bag
    ->set('foo', 'bar');
}