public function HeaderBagTest::testSetAssociativeArray in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/Tests/HeaderBagTest.php \Symfony\Component\HttpFoundation\Tests\HeaderBagTest::testSetAssociativeArray()
File
- vendor/
symfony/ http-foundation/ Tests/ HeaderBagTest.php, line 114
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testSetAssociativeArray() {
$bag = new HeaderBag();
$bag
->set('foo', array(
'bad-assoc-index' => 'value',
));
$this
->assertSame('value', $bag
->get('foo'));
$this
->assertEquals(array(
'value',
), $bag
->get('foo', 'nope', false), 'assoc indices of multi-valued headers are ignored');
}