You are here

public function ParameterBagTest::testConstructor in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/http-foundation/Tests/ParameterBagTest.php \Symfony\Component\HttpFoundation\Tests\ParameterBagTest::testConstructor()
  2. 8.0 vendor/symfony/dependency-injection/Tests/ParameterBag/ParameterBagTest.php \Symfony\Component\DependencyInjection\Tests\ParameterBag\ParameterBagTest::testConstructor()
Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Tests/ParameterBag/ParameterBagTest.php \Symfony\Component\DependencyInjection\Tests\ParameterBag\ParameterBagTest::testConstructor()

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

File

vendor/symfony/dependency-injection/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');
}