You are here

public function StreamedResponseTest::testPrepareWithHeadRequest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/StreamedResponseTest.php \Symfony\Component\HttpFoundation\Tests\StreamedResponseTest::testPrepareWithHeadRequest()

File

vendor/symfony/http-foundation/Tests/StreamedResponseTest.php, line 51

Class

StreamedResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testPrepareWithHeadRequest() {
  $response = new StreamedResponse(function () {
    echo 'foo';
  });
  $request = Request::create('/', 'HEAD');
  $response
    ->prepare($request);
}