You are here

public function ParameterBagTest::testConstructor in Service Container 7.2

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

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

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ParameterBag/ParameterBagTest.php, line 24

Class

ParameterBagTest

Namespace

Symfony\Component\DependencyInjection\Tests\ParameterBag

Code

public function testConstructor() {
  $bag = new ParameterBag($parameters = array(
    'foo' => 'foo',
    'bar' => 'bar',
  ));
  $this
    ->assertEquals($parameters, $bag
    ->all(), '__construct() takes an array of parameters as its first argument');
}