Closed
Description
Consider the following test:
<?php
class HeaderTest extends UnitTestCase {
public function testHeaderBag() {
$headers = ['test'];
$bag1 = new ResponseHeaderBag($headers);
$bag2 = new ResponseHeaderBag($bag1->allPreserveCase());
$this->assertEquals($bag1->allPreserveCase(), $bag2->allPreserveCase());
}
}
?>
It was my assumption that this would pass but it ends up not.
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
0 => Array (...)
'Cache-Control' => Array (
- 0 => 'no-cache'
+ 0 => 'no-cache, private'
)
)
I'm not sure the solution but these aren't technically the same thing so its seems buggy.