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