public function HeaderBagTest::testCacheControlDirectiveParsingQuotedZero

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/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'));
}