X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fhttp-foundation%2FTests%2FHeaderBagTest.php;fp=vendor%2Fsymfony%2Fhttp-foundation%2FTests%2FHeaderBagTest.php;h=1acf593086772ec4ab64aa3d08f44c3d5154f7d9;hp=e5b1b38fdd028417727fb4a9a7c1aa01220209a2;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/symfony/http-foundation/Tests/HeaderBagTest.php b/vendor/symfony/http-foundation/Tests/HeaderBagTest.php index e5b1b38fd..1acf59308 100644 --- a/vendor/symfony/http-foundation/Tests/HeaderBagTest.php +++ b/vendor/symfony/http-foundation/Tests/HeaderBagTest.php @@ -172,6 +172,15 @@ class HeaderBagTest extends TestCase $this->assertEquals(10, $bag->getCacheControlDirective('max-age')); } + public function testCacheControlClone() + { + $headers = array('foo' => 'bar'); + $bag1 = new HeaderBag($headers); + $bag2 = new HeaderBag($bag1->all()); + + $this->assertEquals($bag1->all(), $bag2->all()); + } + public function testGetIterator() { $headers = array('foo' => 'bar', 'hello' => 'world', 'third' => 'charm');