public function HeaderBagTest::testGetCacheControlHeader in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/Tests/HeaderBagTest.php \Symfony\Component\HttpFoundation\Tests\HeaderBagTest::testGetCacheControlHeader()
File
- vendor/
symfony/ http-foundation/ Tests/ HeaderBagTest.php, line 62
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testGetCacheControlHeader() {
$bag = new HeaderBag();
$bag
->addCacheControlDirective('public', '#a');
$this
->assertTrue($bag
->hasCacheControlDirective('public'));
$this
->assertEquals('#a', $bag
->getCacheControlDirective('public'));
}