diff --git a/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php b/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php index d95c93730a..2d8654ef68 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php @@ -50,6 +50,14 @@ class StreamedResponseTest extends \PHPUnit_Framework_TestCase $this->assertEquals('no-cache, private', $response->headers->get('Cache-Control')); } + public function testPrepareWithHeadRequest() + { + $response = new StreamedResponse(function () { echo 'foo'; }); + $request = Request::create('/', 'HEAD'); + + $response->prepare($request); + } + public function testSendContent() { $called = 0;