8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab5abf6 commit b84b46bCopy full SHA for b84b46b
src/Symfony/Component/HttpFoundation/Tests/JsonResponseTest.php
@@ -104,4 +104,11 @@ public function testSetCallbackInvalidIdentifier()
104
$this->setExpectedException('InvalidArgumentException');
105
$response->setCallback('+invalid');
106
}
107
+
108
+ public function testJsonEncodeFlags()
109
+ {
110
+ $response = new JsonResponse('<>\'&"');
111
112
+ $this->assertEquals('"\u003C\u003E\u0027\u0026\u0022"', $response->getContent());
113
+ }
114
0 commit comments