Commit f7a8956f authored by Fabien Potencier's avatar Fabien Potencier

merged branch davedevelopment/fix-json-test (PR #608)

This PR was merged into the master branch.

Commits
-------

48ec9b11 Make test ignore JSON semantics

Discussion
----------

Make test ignore JSON semantics

One fix for Symfony 2.2, related to #607 and symfony/symfony#5506
parents c1bf812c 48ec9b11
...@@ -26,7 +26,8 @@ class JsonTest extends \PHPUnit_Framework_TestCase ...@@ -26,7 +26,8 @@ class JsonTest extends \PHPUnit_Framework_TestCase
$response = $app->json(); $response = $app->json();
$this->assertInstanceOf('Symfony\Component\HttpFoundation\JsonResponse', $response); $this->assertInstanceOf('Symfony\Component\HttpFoundation\JsonResponse', $response);
$this->assertSame('{}', $response->getContent()); $response = json_decode($response->getContent(), true);
$this->assertSame(array(), $response);
} }
public function testJsonUsesData() public function testJsonUsesData()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment