You are here

public function FrozenParameterBagTest::testConstructor 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::testConstructor()

@covers Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag::__construct

File

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

Class

FrozenParameterBagTest

Namespace

Symfony\Component\DependencyInjection\Tests\ParameterBag

Code

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');
}