[HttpFoundation] added some unit tests (refs #4510)
This commit is contained in:
parent
ab5abf6d6b
commit
b84b46ba1a
|
@ -104,4 +104,11 @@ class JsonResponseTest extends \PHPUnit_Framework_TestCase
|
|||
$this->setExpectedException('InvalidArgumentException');
|
||||
$response->setCallback('+invalid');
|
||||
}
|
||||
|
||||
public function testJsonEncodeFlags()
|
||||
{
|
||||
$response = new JsonResponse('<>\'&"');
|
||||
|
||||
$this->assertEquals('"\u003C\u003E\u0027\u0026\u0022"', $response->getContent());
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue