You are here

public function JsonResponseTest::testJsonEncodeFlags in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/JsonResponseTest.php \Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testJsonEncodeFlags()

File

vendor/symfony/http-foundation/Tests/JsonResponseTest.php, line 162

Class

JsonResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testJsonEncodeFlags() {
  $response = new JsonResponse('<>\'&"');
  $this
    ->assertEquals('"\\u003C\\u003E\\u0027\\u0026\\u0022"', $response
    ->getContent());
}