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