public function StreamedResponseTest::testPrepareWith10Protocol in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/StreamedResponseTest.php \Symfony\Component\HttpFoundation\Tests\StreamedResponseTest::testPrepareWith10Protocol()
File
- vendor/
symfony/ http-foundation/ Tests/ StreamedResponseTest.php, line 39
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
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'));
}