You are here

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

File

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

Class

HeaderBagTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testCacheControlDirectiveParsingQuotedZero() {
  $bag = new HeaderBag(array(
    'cache-control' => 'max-age="0"',
  ));
  $this
    ->assertTrue($bag
    ->hasCacheControlDirective('max-age'));
  $this
    ->assertEquals(0, $bag
    ->getCacheControlDirective('max-age'));
}