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