You are here

public function ParameterBagTest::testAdd in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Tests/ParameterBagTest.php \Symfony\Component\HttpFoundation\Tests\ParameterBagTest::testAdd()

File

vendor/symfony/http-foundation/Tests/ParameterBagTest.php, line 41

Class

ParameterBagTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testAdd() {
  $bag = new ParameterBag(array(
    'foo' => 'bar',
  ));
  $bag
    ->add(array(
    'bar' => 'bas',
  ));
  $this
    ->assertEquals(array(
    'foo' => 'bar',
    'bar' => 'bas',
  ), $bag
    ->all());
}