You are here

public function HeaderBagTest::testGetDate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/HeaderBagTest.php \Symfony\Component\HttpFoundation\Tests\HeaderBagTest::testGetDate()

File

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

Class

HeaderBagTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testGetDate() {
  $bag = new HeaderBag(array(
    'foo' => 'Tue, 4 Sep 2012 20:00:00 +0200',
  ));
  $headerDate = $bag
    ->getDate('foo');
  $this
    ->assertInstanceOf('DateTime', $headerDate);
}