instaclick/ICBaseTestBundle — pull request #45 by cabello (2013-12-19 23:01:40+00:00)
Title: Create JsonResponse and add response status code assertions

JsonResponse makes life easier for testing properties, expected use:

$response = $this->testCase->getClient()->getResponse();
$jsonResponse = new JsonResponse($response);

$this->assertEquals('funny name', $jsonResponse->getProperty('profile.name'));

New assertions for checking response status code to avoid hard coding numbers everywhere.