public function JsonResponseTest::testConstructorWithCustomContentType in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/JsonResponseTest.php \Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testConstructorWithCustomContentType()
File
- vendor/
symfony/ http-foundation/ Tests/ JsonResponseTest.php, line 70
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testConstructorWithCustomContentType() {
$headers = array(
'Content-Type' => 'application/vnd.acme.blog-v1+json',
);
$response = new JsonResponse(array(), 200, $headers);
$this
->assertSame('application/vnd.acme.blog-v1+json', $response->headers
->get('Content-Type'));
}