summaryrefslogtreecommitdiff
path: root/vendor/symfony/http-foundation/Tests/ResponseTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/http-foundation/Tests/ResponseTest.php')
-rw-r--r--vendor/symfony/http-foundation/Tests/ResponseTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/symfony/http-foundation/Tests/ResponseTest.php b/vendor/symfony/http-foundation/Tests/ResponseTest.php
index b20bb0b2a6..ad1f806d73 100644
--- a/vendor/symfony/http-foundation/Tests/ResponseTest.php
+++ b/vendor/symfony/http-foundation/Tests/ResponseTest.php
@@ -370,6 +370,12 @@ class ResponseTest extends ResponseTestCase
$this->assertNull($response->headers->get('Expires'), '->expire() removes the Expires header when the response is fresh');
}
+ public function testNullExpireHeader()
+ {
+ $response = new Response(null, 200, ['Expires' => null]);
+ $this->assertNull($response->getExpires());
+ }
+
public function testGetTtl()
{
$response = new Response();