public function testPrepareSetsPragmaOnHttp10Only() {
$request = Request::create('/', 'GET');
$request->server
->set('SERVER_PROTOCOL', 'HTTP/1.0');
$response = new Response('foo');
$response
->prepare($request);
$this
->assertEquals('no-cache', $response->headers
->get('pragma'));
$this
->assertEquals('-1', $response->headers
->get('expires'));
$request->server
->set('SERVER_PROTOCOL', 'HTTP/1.1');
$response = new Response('foo');
$response
->prepare($request);
$this
->assertFalse($response->headers
->has('pragma'));
$this
->assertFalse($response->headers
->has('expires'));
}