Skip to content

Commit 59419ab

Browse files
committed
[HttpFoundation] Expires HTTP Response header
Added test
1 parent 8f910b9 commit 59419ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Symfony/Component/HttpFoundation/Tests/EventStreamResponseTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ public function testInitializationWithDefaultValues()
2929
$this->assertNull($response->getRetry());
3030
}
3131

32+
public function testPresentOfExpiresHeader()
33+
{
34+
$response = new EventStreamResponse();
35+
36+
$this->assertTrue($response->headers->has('Expires'));
37+
$this->assertSame('0', $response->headers->get('Expires'));
38+
}
39+
3240
public function testStreamSingleEvent()
3341
{
3442
$response = new EventStreamResponse(function () {

0 commit comments

Comments
 (0)