public function testPrepareWith10Protocol() {
$response = new StreamedResponse(function () {
echo 'foo';
});
$request = Request::create('/');
$request->server
->set('SERVER_PROTOCOL', 'HTTP/1.0');
$response
->prepare($request);
$this
->assertEquals('1.0', $response
->getProtocolVersion());
$this
->assertNull($response->headers
->get('Transfer-Encoding'));
$this
->assertEquals('no-cache, private', $response->headers
->get('Cache-Control'));
}