You are here

public function ResponseTest::testGetCharset in Zircon Profile 8

Same name and namespace in other branches
  1. 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

ResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testGetCharset() {
  $response = new Response();
  $charsetOrigin = 'UTF-8';
  $response
    ->setCharset($charsetOrigin);
  $charset = $response
    ->getCharset();
  $this
    ->assertEquals($charsetOrigin, $charset);
}