public function JsonResponseTest::testConstructorAddsContentTypeHeader 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::testConstructorAddsContentTypeHeader()
File
- vendor/
symfony/ http-foundation/ Tests/ JsonResponseTest.php, line 57
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testConstructorAddsContentTypeHeader() {
$response = new JsonResponse();
$this
->assertSame('application/json', $response->headers
->get('Content-Type'));
}