{"action":"created","comment":{"url":"https://api.github.com/repos/estahn/phpunit-json-assertions/pulls/comments/56787682","id":56787682,"diff_hunk":"@@ -58,4 +58,25 @@ public static function assertJsonValueEquals($expected, $expression, $response)\n     {\n         Assert::assertJsonValueEquals($expected, $expression, json_decode($response->getContent()));\n     }\n+\n+    /**\n+     * Asserts that a response is successful and of type json.\n+     *\n+     * @param Response $response   Response object\n+     * @param int      $statusCode Expected status code (default 200)\n+     *\n+     * @see \\Bazinga\\Bundle\\RestExtraBundle\\Test\\WebTestCase::assertJsonResponse()\n+     */\n+    public static function assertJsonResponse(Response $response, $statusCode = 200)\n+    {\n+        \\PHPUnit_Framework_Assert::assertEquals(","path":"src/Extension/Symfony.php","position":15,"original_position":15,"commit_id":"2b59aea11470dd57286fe0e5abdd3f17828021cd","original_commit_id":"2b59aea11470dd57286fe0e5abdd3f17828021cd","user":{"login":"estahn","id":362174,"avatar_url":"https://avatars.githubusercontent.com/u/362174?v=3","gravatar_id":"","url":"https://api.github.com/users/estahn","html_url":"https://github.com/estahn","followers_url":"https://api.github.com/users/estahn/followers","following_url":"https://api.github.com/users/estahn/following{/other_user}","gists_url":"https://api.github.com/users/estahn/gists{/gist_id}","starred_url":"https://api.github.com/users/estahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estahn/subscriptions","organizations_url":"https://api.github.com/users/estahn/orgs","repos_url":"https://api.github.com/users/estahn/repos","events_url":"https://api.github.com/users/estahn/events{/privacy}","received_events_url":"https://api.github.com/users/estahn/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Avoid using static access to class '\\PHPUnit_Framework_Assert' in method 'assertJsonResponse'.](https://www.codacy.com/app/estahn/phpunit-json-assertions/file/2281656016/issues/source?bid=3181605&fileBranchId=3188493#l72)","created_at":"2016-03-21T07:25:13Z","updated_at":"2016-03-21T07:25:13Z","html_url":"https://github.com/estahn/phpunit-json-assertions/pull/7#discussion_r56787682","pull_request_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/estahn/phpunit-json-assertions/pulls/comments/56787682"},"html":{"href":"https://github.com/estahn/phpunit-json-assertions/pull/7#discussion_r56787682"},"pull_request":{"href":"https://api.github.com/repos/estahn/phpunit-json-assertions/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/estahn/phpunit-json-assertions/pulls/7","id":63526914,"html_url":"https://github.com/estahn/phpunit-json-assertions/pull/7","diff_url":"https://github.com/estahn/phpunit-json-assertions/pull/7.diff","patch_url":"https://github.com/estahn/phpunit-json-assertions/pull/7.patch","issue_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/issues/7","number":7,"state":"open","locked":false,"title":"Add assertJsonResponse to Symfony extension","user":{"login":"estahn","id":362174,"avatar_url":"https://avatars.githubusercontent.com/u/362174?v=3","gravatar_id":"","url":"https://api.github.com/users/estahn","html_url":"https://github.com/estahn","followers_url":"https://api.github.com/users/estahn/followers","following_url":"https://api.github.com/users/estahn/following{/other_user}","gists_url":"https://api.github.com/users/estahn/gists{/gist_id}","starred_url":"https://api.github.com/users/estahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estahn/subscriptions","organizations_url":"https://api.github.com/users/estahn/orgs","repos_url":"https://api.github.com/users/estahn/repos","events_url":"https://api.github.com/users/estahn/events{/privacy}","received_events_url":"https://api.github.com/users/estahn/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-21T06:56:54Z","updated_at":"2016-03-21T07:25:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13f50e42e8e055f284a7ded9c44824b80a80de88","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/pulls/7/commits","review_comments_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/pulls/7/comments","review_comment_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/issues/7/comments","statuses_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/statuses/2b59aea11470dd57286fe0e5abdd3f17828021cd","head":{"label":"estahn:symfony_assertJsonResponse","ref":"symfony_assertJsonResponse","sha":"2b59aea11470dd57286fe0e5abdd3f17828021cd","user":{"login":"estahn","id":362174,"avatar_url":"https://avatars.githubusercontent.com/u/362174?v=3","gravatar_id":"","url":"https://api.github.com/users/estahn","html_url":"https://github.com/estahn","followers_url":"https://api.github.com/users/estahn/followers","following_url":"https://api.github.com/users/estahn/following{/other_user}","gists_url":"https://api.github.com/users/estahn/gists{/gist_id}","starred_url":"https://api.github.com/users/estahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estahn/subscriptions","organizations_url":"https://api.github.com/users/estahn/orgs","repos_url":"https://api.github.com/users/estahn/repos","events_url":"https://api.github.com/users/estahn/events{/privacy}","received_events_url":"https://api.github.com/users/estahn/received_events","type":"User","site_admin":false},"repo":{"id":53177096,"name":"phpunit-json-assertions","full_name":"estahn/phpunit-json-assertions","owner":{"login":"estahn","id":362174,"avatar_url":"https://avatars.githubusercontent.com/u/362174?v=3","gravatar_id":"","url":"https://api.github.com/users/estahn","html_url":"https://github.com/estahn","followers_url":"https://api.github.com/users/estahn/followers","following_url":"https://api.github.com/users/estahn/following{/other_user}","gists_url":"https://api.github.com/users/estahn/gists{/gist_id}","starred_url":"https://api.github.com/users/estahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estahn/subscriptions","organizations_url":"https://api.github.com/users/estahn/orgs","repos_url":"https://api.github.com/users/estahn/repos","events_url":"https://api.github.com/users/estahn/events{/privacy}","received_events_url":"https://api.github.com/users/estahn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/estahn/phpunit-json-assertions","description":"JSON assertions for PHPUnit (including JSON Schema)","fork":false,"url":"https://api.github.com/repos/estahn/phpunit-json-assertions","forks_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/forks","keys_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/teams","hooks_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/hooks","issue_events_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/issues/events{/number}","events_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/events","assignees_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/assignees{/user}","branches_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/branches{/branch}","tags_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/tags","blobs_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/git/refs{/sha}","trees_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/statuses/{sha}","languages_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/languages","stargazers_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/stargazers","contributors_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/contributors","subscribers_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/subscribers","subscription_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/subscription","commits_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/commits{/sha}","git_commits_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/git/commits{/sha}","comments_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/comments{/number}","issue_comment_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/issues/comments{/number}","contents_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/contents/{+path}","compare_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/merges","archive_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/downloads","issues_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/issues{/number}","pulls_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/pulls{/number}","milestones_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/milestones{/number}","notifications_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/labels{/name}","releases_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/releases{/id}","deployments_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/deployments","created_at":"2016-03-05T01:50:39Z","updated_at":"2016-03-17T17:42:30Z","pushed_at":"2016-03-21T07:23:04Z","git_url":"git://github.com/estahn/phpunit-json-assertions.git","ssh_url":"git@github.com:estahn/phpunit-json-assertions.git","clone_url":"https://github.com/estahn/phpunit-json-assertions.git","svn_url":"https://github.com/estahn/phpunit-json-assertions","homepage":null,"size":43,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"estahn:master","ref":"master","sha":"f319623dc786ff055cbf96cbd47bb9d3b9a4e8f2","user":{"login":"estahn","id":362174,"avatar_url":"https://avatars.githubusercontent.com/u/362174?v=3","gravatar_id":"","url":"https://api.github.com/users/estahn","html_url":"https://github.com/estahn","followers_url":"https://api.github.com/users/estahn/followers","following_url":"https://api.github.com/users/estahn/following{/other_user}","gists_url":"https://api.github.com/users/estahn/gists{/gist_id}","starred_url":"https://api.github.com/users/estahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estahn/subscriptions","organizations_url":"https://api.github.com/users/estahn/orgs","repos_url":"https://api.github.com/users/estahn/repos","events_url":"https://api.github.com/users/estahn/events{/privacy}","received_events_url":"https://api.github.com/users/estahn/received_events","type":"User","site_admin":false},"repo":{"id":53177096,"name":"phpunit-json-assertions","full_name":"estahn/phpunit-json-assertions","owner":{"login":"estahn","id":362174,"avatar_url":"https://avatars.githubusercontent.com/u/362174?v=3","gravatar_id":"","url":"https://api.github.com/users/estahn","html_url":"https://github.com/estahn","followers_url":"https://api.github.com/users/estahn/followers","following_url":"https://api.github.com/users/estahn/following{/other_user}","gists_url":"https://api.github.com/users/estahn/gists{/gist_id}","starred_url":"https://api.github.com/users/estahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estahn/subscriptions","organizations_url":"https://api.github.com/users/estahn/orgs","repos_url":"https://api.github.com/users/estahn/repos","events_url":"https://api.github.com/users/estahn/events{/privacy}","received_events_url":"https://api.github.com/users/estahn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/estahn/phpunit-json-assertions","description":"JSON assertions for PHPUnit (including JSON Schema)","fork":false,"url":"https://api.github.com/repos/estahn/phpunit-json-assertions","forks_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/forks","keys_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/teams","hooks_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/hooks","issue_events_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/issues/events{/number}","events_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/events","assignees_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/assignees{/user}","branches_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/branches{/branch}","tags_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/tags","blobs_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/git/refs{/sha}","trees_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/statuses/{sha}","languages_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/languages","stargazers_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/stargazers","contributors_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/contributors","subscribers_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/subscribers","subscription_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/subscription","commits_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/commits{/sha}","git_commits_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/git/commits{/sha}","comments_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/comments{/number}","issue_comment_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/issues/comments{/number}","contents_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/contents/{+path}","compare_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/merges","archive_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/downloads","issues_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/issues{/number}","pulls_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/pulls{/number}","milestones_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/milestones{/number}","notifications_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/labels{/name}","releases_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/releases{/id}","deployments_url":"https://api.github.com/repos/estahn/phpunit-json-assertions/deployments","created_at":"2016-03-05T01:50:39Z","updated_at":"2016-03-17T17:42:30Z","pushed_at":"2016-03-21T07:23:04Z","git_url":"git://github.com/estahn/phpunit-json-assertions.git","ssh_url":"git@github.com:estahn/phpunit-json-assertions.git","clone_url":"https://github.com/estahn/phpunit-json-assertions.git","svn_url":"https://github.com/estahn/phpunit-json-assertions","homepage":null,"size":43,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/estahn/phpunit-json-assertions/pulls/7"},"html":{"href":"https://github.com/estahn/phpunit-json-assertions/pull/7"},"issue":{"href":"https://api.github.com/repos/estahn/phpunit-json-assertions/issues/7"},"comments":{"href":"https://api.github.com/repos/estahn/phpunit-json-assertions/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/estahn/phpunit-json-assertions/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/estahn/phpunit-json-assertions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/estahn/phpunit-json-assertions/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/estahn/phpunit-json-assertions/statuses/2b59aea11470dd57286fe0e5abdd3f17828021cd"}}}}