public function ResponseTest::testGetCharset 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::testGetCharset()
File
- vendor/
symfony/ http-foundation/ Tests/ ResponseTest.php, line 67
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testGetCharset() {
$response = new Response();
$charsetOrigin = 'UTF-8';
$response
->setCharset($charsetOrigin);
$charset = $response
->getCharset();
$this
->assertEquals($charsetOrigin, $charset);
}