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')); }