You are here

public function HeaderBagTest::testConstructor 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::testConstructor()

@covers Symfony\Component\HttpFoundation\HeaderBag::__construct

File

vendor/symfony/http-foundation/Tests/HeaderBagTest.php, line 21

Class

HeaderBagTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testConstructor() {
  $bag = new HeaderBag(array(
    'foo' => 'bar',
  ));
  $this
    ->assertTrue($bag
    ->has('foo'));
}