public function ResponseTest::testPrepareDoesNothingIfRequestFormatIsNotDefined in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/Tests/ResponseTest.php \Symfony\Component\HttpFoundation\Tests\ResponseTest::testPrepareDoesNothingIfRequestFormatIsNotDefined()
File
- vendor/
symfony/ http-foundation/ Tests/ ResponseTest.php, line 475
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testPrepareDoesNothingIfRequestFormatIsNotDefined() {
$response = new Response('foo');
$response
->prepare(new Request());
$this
->assertEquals('text/html; charset=UTF-8', $response->headers
->get('content-type'));
}