/** * @covers Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag::__construct */ public function testConstructor() { $parameters = array('foo' => 'foo', 'bar' => 'bar'); $bag = new FrozenParameterBag($parameters); $this->assertEquals($parameters, $bag->all(), '__construct() takes an array of parameters as its first argument'); }
/** * Gets all defined parameters. This method does not consider parameters * from the service container, regardless of its availability. * * @see Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::all() */ public function all() { $this->initialize(); return parent::all(); }