You are here

public function HeaderBagTest::testAll in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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

HeaderBagTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

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');
}