From aa80c66df3db441cee6936eee1bbfe209c7b3779 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 1 Sep 2016 17:15:52 +0200 Subject: [PATCH] Minor fixes & cleanups --- Tests/JsonResponseTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/JsonResponseTest.php b/Tests/JsonResponseTest.php index 0a0732f47..7b1c44674 100644 --- a/Tests/JsonResponseTest.php +++ b/Tests/JsonResponseTest.php @@ -216,10 +216,10 @@ public function testSetContentJsonSerializeError() public function testSetComplexCallback() { - $response = JsonResponse::fromJsonString('{foo: "bar"}'); + $response = JsonResponse::create(array('foo' => 'bar')); $response->setCallback('ಠ_ಠ["foo"].bar[0]'); - $this->assertEquals('/**/ಠ_ಠ["foo"].bar[0]({foo: "bar"});', $response->getContent()); + $this->assertEquals('/**/ಠ_ಠ["foo"].bar[0]({"foo":"bar"});', $response->getContent()); } }