File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/ResponseHeaderBagTest.php, line 135
Class
- ResponseHeaderBagTest
Namespace
Symfony\Component\HttpFoundation\Tests
Code
public function testReplaceWithRemove() {
$bag = new ResponseHeaderBag(array());
$this
->assertEquals('no-cache', $bag
->get('Cache-Control'));
$this
->assertTrue($bag
->hasCacheControlDirective('no-cache'));
$bag
->remove('Cache-Control');
$bag
->replace(array());
$this
->assertEquals('no-cache', $bag
->get('Cache-Control'));
$this
->assertTrue($bag
->hasCacheControlDirective('no-cache'));
}