public function ResponseTest::testContentTypeCharset 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::testContentTypeCharset()
File
- vendor/
symfony/ http-foundation/ Tests/ ResponseTest.php, line 454
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testContentTypeCharset() {
$response = new Response();
$response->headers
->set('Content-Type', 'text/css');
// force fixContentType() to be called
$response
->prepare(new Request());
$this
->assertEquals('text/css; charset=UTF-8', $response->headers
->get('Content-Type'));
}