public function ParameterBagTest::testAdd in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/ParameterBagTest.php \Symfony\Component\HttpFoundation\Tests\ParameterBagTest::testAdd()
File
- vendor/
symfony/ http-foundation/ Tests/ ParameterBagTest.php, line 41
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testAdd() {
$bag = new ParameterBag(array(
'foo' => 'bar',
));
$bag
->add(array(
'bar' => 'bas',
));
$this
->assertEquals(array(
'foo' => 'bar',
'bar' => 'bas',
), $bag
->all());
}