Skip to content

Instantly share code, notes, and snippets.

@neclimdul
Created October 7, 2015 22:59
Show Gist options
  • Save neclimdul/8fc3a7375083c1d97d14 to your computer and use it in GitHub Desktop.
Save neclimdul/8fc3a7375083c1d97d14 to your computer and use it in GitHub Desktop.
1) Drupal\Tests\Core\Routing\SecuredRedirectResponseTest::testHeaderBag
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
0 => Array (...)
'Cache-Control' => Array (
- 0 => 'no-cache'
+ 0 => 'no-cache, private'
)
)
<?php
class SecuredRedirectResponseTest extends UnitTestCase {
public function testHeaderBag() {
$headers = ['test'];
$bag1 = new ResponseHeaderBag($headers);
$bag2 = new ResponseHeaderBag($bag1->allPreserveCase());
$this->assertEquals($bag1->allPreserveCase(), $bag2->allPreserveCase());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment