public function HeaderBagTest::testCacheControlDirectiveParsingQuotedZero in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/HeaderBagTest.php \Symfony\Component\HttpFoundation\Tests\HeaderBagTest::testCacheControlDirectiveParsingQuotedZero()
File
- vendor/
symfony/ http-foundation/ Tests/ HeaderBagTest.php, line 171
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
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'));
}