public function JsonResponseTest::testStaticCreateWithCustomContentType 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::testStaticCreateWithCustomContentType()
File
- vendor/
symfony/ http-foundation/ Tests/ JsonResponseTest.php, line 146
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testStaticCreateWithCustomContentType() {
$headers = array(
'Content-Type' => 'application/vnd.acme.blog-v1+json',
);
$response = JsonResponse::create(array(), 200, $headers);
$this
->assertSame('application/vnd.acme.blog-v1+json', $response->headers
->get('Content-Type'));
}