public function testReplace() {
$bag = new ResponseHeaderBag(array());
$this
->assertEquals('no-cache', $bag
->get('Cache-Control'));
$this
->assertTrue($bag
->hasCacheControlDirective('no-cache'));
$bag
->replace(array(
'Cache-Control' => 'public',
));
$this
->assertEquals('public', $bag
->get('Cache-Control'));
$this
->assertTrue($bag
->hasCacheControlDirective('public'));
}