public function HeaderBagTest::testAll 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::testAll()
@covers Symfony\Component\HttpFoundation\HeaderBag::all
File
- vendor/
symfony/ http-foundation/ Tests/ HeaderBagTest.php, line 73
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testAll() {
$bag = new HeaderBag(array(
'foo' => 'bar',
));
$this
->assertEquals(array(
'foo' => array(
'bar',
),
), $bag
->all(), '->all() gets all the input');
$bag = new HeaderBag(array(
'FOO' => 'BAR',
));
$this
->assertEquals(array(
'foo' => array(
'BAR',
),
), $bag
->all(), '->all() gets all the input key are lower case');
}