{"action":"created","comment":{"url":"https://api.github.com/repos/chobie/jira-api-restclient/pulls/comments/76415639","id":76415639,"diff_hunk":"@@ -30,16 +30,27 @@ protected function setUp()\n \t\t$this->client = $this->createClient();\n \t}\n \n-\tpublic function testGetRequest()\n+\t/**\n+\t * @dataProvider getRequestWithKnownHttpCode\n+\t */\n+\tpublic function testGetRequestWithKnownHttpCode($http_code)\n \t{\n \t\t$data = array('param1' => 'value1', 'param2' => 'value2');\n-\t\t$trace_result = $this->traceRequest(Api::REQUEST_GET, $data);\n+\t\t$trace_result = $this->traceRequest(Api::REQUEST_GET, array_merge(['http_code' => $http_code], $data));\n \n \t\t$this->assertEquals('GET', $trace_result['_SERVER']['REQUEST_METHOD']);\n \t\t$this->assertContentType('application/json;charset=UTF-8', $trace_result);\n \t\t$this->assertEquals($data, $trace_result['_GET']);\n \t}\n \n+\tpublic function getRequestWithKnownHttpCode()","path":"tests/Jira/Api/Client/AbstractClientTestCase.php","position":19,"original_position":19,"commit_id":"5100d3fe0d442a5ea2912bd765f40f5e89da8492","original_commit_id":"5100d3fe0d442a5ea2912bd765f40f5e89da8492","user":{"login":"aik099","id":1277526,"avatar_url":"https://avatars.githubusercontent.com/u/1277526?v=3","gravatar_id":"","url":"https://api.github.com/users/aik099","html_url":"https://github.com/aik099","followers_url":"https://api.github.com/users/aik099/followers","following_url":"https://api.github.com/users/aik099/following{/other_user}","gists_url":"https://api.github.com/users/aik099/gists{/gist_id}","starred_url":"https://api.github.com/users/aik099/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aik099/subscriptions","organizations_url":"https://api.github.com/users/aik099/orgs","repos_url":"https://api.github.com/users/aik099/repos","events_url":"https://api.github.com/users/aik099/events{/privacy}","received_events_url":"https://api.github.com/users/aik099/received_events","type":"User","site_admin":false},"body":"Please rename into `getRequestWithKnownHttpCodeDataProvider`.","created_at":"2016-08-26T13:11:45Z","updated_at":"2016-08-26T13:11:45Z","html_url":"https://github.com/chobie/jira-api-restclient/pull/140#discussion_r76415639","pull_request_url":"https://api.github.com/repos/chobie/jira-api-restclient/pulls/140","_links":{"self":{"href":"https://api.github.com/repos/chobie/jira-api-restclient/pulls/comments/76415639"},"html":{"href":"https://github.com/chobie/jira-api-restclient/pull/140#discussion_r76415639"},"pull_request":{"href":"https://api.github.com/repos/chobie/jira-api-restclient/pulls/140"}}},"pull_request":{"url":"https://api.github.com/repos/chobie/jira-api-restclient/pulls/140","id":82873046,"html_url":"https://github.com/chobie/jira-api-restclient/pull/140","diff_url":"https://github.com/chobie/jira-api-restclient/pull/140.diff","patch_url":"https://github.com/chobie/jira-api-restclient/pull/140.patch","issue_url":"https://api.github.com/repos/chobie/jira-api-restclient/issues/140","number":140,"state":"open","locked":false,"title":"Set ignore_errors flag for HTTP requests in PHP client","user":{"login":"betterphp","id":788007,"avatar_url":"https://avatars.githubusercontent.com/u/788007?v=3","gravatar_id":"","url":"https://api.github.com/users/betterphp","html_url":"https://github.com/betterphp","followers_url":"https://api.github.com/users/betterphp/followers","following_url":"https://api.github.com/users/betterphp/following{/other_user}","gists_url":"https://api.github.com/users/betterphp/gists{/gist_id}","starred_url":"https://api.github.com/users/betterphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betterphp/subscriptions","organizations_url":"https://api.github.com/users/betterphp/orgs","repos_url":"https://api.github.com/users/betterphp/repos","events_url":"https://api.github.com/users/betterphp/events{/privacy}","received_events_url":"https://api.github.com/users/betterphp/received_events","type":"User","site_admin":false},"body":"By default when a HTTP code other than 200 is returned file_get_contents does not return the content. Setting this flag means that the data is always returned and error messages from JIRA can be parsed correctly","created_at":"2016-08-26T11:30:37Z","updated_at":"2016-08-26T13:11:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d035c1ca26c9417f6c6385f7ad382361796f5b5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/chobie/jira-api-restclient/pulls/140/commits","review_comments_url":"https://api.github.com/repos/chobie/jira-api-restclient/pulls/140/comments","review_comment_url":"https://api.github.com/repos/chobie/jira-api-restclient/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chobie/jira-api-restclient/issues/140/comments","statuses_url":"https://api.github.com/repos/chobie/jira-api-restclient/statuses/5100d3fe0d442a5ea2912bd765f40f5e89da8492","head":{"label":"betterphp:master","ref":"master","sha":"5100d3fe0d442a5ea2912bd765f40f5e89da8492","user":{"login":"betterphp","id":788007,"avatar_url":"https://avatars.githubusercontent.com/u/788007?v=3","gravatar_id":"","url":"https://api.github.com/users/betterphp","html_url":"https://github.com/betterphp","followers_url":"https://api.github.com/users/betterphp/followers","following_url":"https://api.github.com/users/betterphp/following{/other_user}","gists_url":"https://api.github.com/users/betterphp/gists{/gist_id}","starred_url":"https://api.github.com/users/betterphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betterphp/subscriptions","organizations_url":"https://api.github.com/users/betterphp/orgs","repos_url":"https://api.github.com/users/betterphp/repos","events_url":"https://api.github.com/users/betterphp/events{/privacy}","received_events_url":"https://api.github.com/users/betterphp/received_events","type":"User","site_admin":false},"repo":{"id":66642268,"name":"jira-api-restclient","full_name":"betterphp/jira-api-restclient","owner":{"login":"betterphp","id":788007,"avatar_url":"https://avatars.githubusercontent.com/u/788007?v=3","gravatar_id":"","url":"https://api.github.com/users/betterphp","html_url":"https://github.com/betterphp","followers_url":"https://api.github.com/users/betterphp/followers","following_url":"https://api.github.com/users/betterphp/following{/other_user}","gists_url":"https://api.github.com/users/betterphp/gists{/gist_id}","starred_url":"https://api.github.com/users/betterphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betterphp/subscriptions","organizations_url":"https://api.github.com/users/betterphp/orgs","repos_url":"https://api.github.com/users/betterphp/repos","events_url":"https://api.github.com/users/betterphp/events{/privacy}","received_events_url":"https://api.github.com/users/betterphp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/betterphp/jira-api-restclient","description":"php JIRA REST API","fork":true,"url":"https://api.github.com/repos/betterphp/jira-api-restclient","forks_url":"https://api.github.com/repos/betterphp/jira-api-restclient/forks","keys_url":"https://api.github.com/repos/betterphp/jira-api-restclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/betterphp/jira-api-restclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/betterphp/jira-api-restclient/teams","hooks_url":"https://api.github.com/repos/betterphp/jira-api-restclient/hooks","issue_events_url":"https://api.github.com/repos/betterphp/jira-api-restclient/issues/events{/number}","events_url":"https://api.github.com/repos/betterphp/jira-api-restclient/events","assignees_url":"https://api.github.com/repos/betterphp/jira-api-restclient/assignees{/user}","branches_url":"https://api.github.com/repos/betterphp/jira-api-restclient/branches{/branch}","tags_url":"https://api.github.com/repos/betterphp/jira-api-restclient/tags","blobs_url":"https://api.github.com/repos/betterphp/jira-api-restclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/betterphp/jira-api-restclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/betterphp/jira-api-restclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/betterphp/jira-api-restclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/betterphp/jira-api-restclient/statuses/{sha}","languages_url":"https://api.github.com/repos/betterphp/jira-api-restclient/languages","stargazers_url":"https://api.github.com/repos/betterphp/jira-api-restclient/stargazers","contributors_url":"https://api.github.com/repos/betterphp/jira-api-restclient/contributors","subscribers_url":"https://api.github.com/repos/betterphp/jira-api-restclient/subscribers","subscription_url":"https://api.github.com/repos/betterphp/jira-api-restclient/subscription","commits_url":"https://api.github.com/repos/betterphp/jira-api-restclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/betterphp/jira-api-restclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/betterphp/jira-api-restclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/betterphp/jira-api-restclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/betterphp/jira-api-restclient/contents/{+path}","compare_url":"https://api.github.com/repos/betterphp/jira-api-restclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/betterphp/jira-api-restclient/merges","archive_url":"https://api.github.com/repos/betterphp/jira-api-restclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/betterphp/jira-api-restclient/downloads","issues_url":"https://api.github.com/repos/betterphp/jira-api-restclient/issues{/number}","pulls_url":"https://api.github.com/repos/betterphp/jira-api-restclient/pulls{/number}","milestones_url":"https://api.github.com/repos/betterphp/jira-api-restclient/milestones{/number}","notifications_url":"https://api.github.com/repos/betterphp/jira-api-restclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/betterphp/jira-api-restclient/labels{/name}","releases_url":"https://api.github.com/repos/betterphp/jira-api-restclient/releases{/id}","deployments_url":"https://api.github.com/repos/betterphp/jira-api-restclient/deployments","created_at":"2016-08-26T11:24:05Z","updated_at":"2016-08-26T11:24:06Z","pushed_at":"2016-08-26T13:08:16Z","git_url":"git://github.com/betterphp/jira-api-restclient.git","ssh_url":"git@github.com:betterphp/jira-api-restclient.git","clone_url":"https://github.com/betterphp/jira-api-restclient.git","svn_url":"https://github.com/betterphp/jira-api-restclient","homepage":"","size":224,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chobie:master","ref":"master","sha":"78a5e181b779b35f81c72f8699264a844202ca27","user":{"login":"chobie","id":195038,"avatar_url":"https://avatars.githubusercontent.com/u/195038?v=3","gravatar_id":"","url":"https://api.github.com/users/chobie","html_url":"https://github.com/chobie","followers_url":"https://api.github.com/users/chobie/followers","following_url":"https://api.github.com/users/chobie/following{/other_user}","gists_url":"https://api.github.com/users/chobie/gists{/gist_id}","starred_url":"https://api.github.com/users/chobie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chobie/subscriptions","organizations_url":"https://api.github.com/users/chobie/orgs","repos_url":"https://api.github.com/users/chobie/repos","events_url":"https://api.github.com/users/chobie/events{/privacy}","received_events_url":"https://api.github.com/users/chobie/received_events","type":"User","site_admin":false},"repo":{"id":3930735,"name":"jira-api-restclient","full_name":"chobie/jira-api-restclient","owner":{"login":"chobie","id":195038,"avatar_url":"https://avatars.githubusercontent.com/u/195038?v=3","gravatar_id":"","url":"https://api.github.com/users/chobie","html_url":"https://github.com/chobie","followers_url":"https://api.github.com/users/chobie/followers","following_url":"https://api.github.com/users/chobie/following{/other_user}","gists_url":"https://api.github.com/users/chobie/gists{/gist_id}","starred_url":"https://api.github.com/users/chobie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chobie/subscriptions","organizations_url":"https://api.github.com/users/chobie/orgs","repos_url":"https://api.github.com/users/chobie/repos","events_url":"https://api.github.com/users/chobie/events{/privacy}","received_events_url":"https://api.github.com/users/chobie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chobie/jira-api-restclient","description":"php JIRA REST API","fork":false,"url":"https://api.github.com/repos/chobie/jira-api-restclient","forks_url":"https://api.github.com/repos/chobie/jira-api-restclient/forks","keys_url":"https://api.github.com/repos/chobie/jira-api-restclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chobie/jira-api-restclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chobie/jira-api-restclient/teams","hooks_url":"https://api.github.com/repos/chobie/jira-api-restclient/hooks","issue_events_url":"https://api.github.com/repos/chobie/jira-api-restclient/issues/events{/number}","events_url":"https://api.github.com/repos/chobie/jira-api-restclient/events","assignees_url":"https://api.github.com/repos/chobie/jira-api-restclient/assignees{/user}","branches_url":"https://api.github.com/repos/chobie/jira-api-restclient/branches{/branch}","tags_url":"https://api.github.com/repos/chobie/jira-api-restclient/tags","blobs_url":"https://api.github.com/repos/chobie/jira-api-restclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chobie/jira-api-restclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chobie/jira-api-restclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/chobie/jira-api-restclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chobie/jira-api-restclient/statuses/{sha}","languages_url":"https://api.github.com/repos/chobie/jira-api-restclient/languages","stargazers_url":"https://api.github.com/repos/chobie/jira-api-restclient/stargazers","contributors_url":"https://api.github.com/repos/chobie/jira-api-restclient/contributors","subscribers_url":"https://api.github.com/repos/chobie/jira-api-restclient/subscribers","subscription_url":"https://api.github.com/repos/chobie/jira-api-restclient/subscription","commits_url":"https://api.github.com/repos/chobie/jira-api-restclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/chobie/jira-api-restclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/chobie/jira-api-restclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/chobie/jira-api-restclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/chobie/jira-api-restclient/contents/{+path}","compare_url":"https://api.github.com/repos/chobie/jira-api-restclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chobie/jira-api-restclient/merges","archive_url":"https://api.github.com/repos/chobie/jira-api-restclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chobie/jira-api-restclient/downloads","issues_url":"https://api.github.com/repos/chobie/jira-api-restclient/issues{/number}","pulls_url":"https://api.github.com/repos/chobie/jira-api-restclient/pulls{/number}","milestones_url":"https://api.github.com/repos/chobie/jira-api-restclient/milestones{/number}","notifications_url":"https://api.github.com/repos/chobie/jira-api-restclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chobie/jira-api-restclient/labels{/name}","releases_url":"https://api.github.com/repos/chobie/jira-api-restclient/releases{/id}","deployments_url":"https://api.github.com/repos/chobie/jira-api-restclient/deployments","created_at":"2012-04-04T16:32:22Z","updated_at":"2016-08-16T19:31:59Z","pushed_at":"2016-08-26T13:08:17Z","git_url":"git://github.com/chobie/jira-api-restclient.git","ssh_url":"git@github.com:chobie/jira-api-restclient.git","clone_url":"https://github.com/chobie/jira-api-restclient.git","svn_url":"https://github.com/chobie/jira-api-restclient","homepage":"","size":412,"stargazers_count":140,"watchers_count":140,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":93,"mirror_url":null,"open_issues_count":36,"forks":93,"open_issues":36,"watchers":140,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chobie/jira-api-restclient/pulls/140"},"html":{"href":"https://github.com/chobie/jira-api-restclient/pull/140"},"issue":{"href":"https://api.github.com/repos/chobie/jira-api-restclient/issues/140"},"comments":{"href":"https://api.github.com/repos/chobie/jira-api-restclient/issues/140/comments"},"review_comments":{"href":"https://api.github.com/repos/chobie/jira-api-restclient/pulls/140/comments"},"review_comment":{"href":"https://api.github.com/repos/chobie/jira-api-restclient/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chobie/jira-api-restclient/pulls/140/commits"},"statuses":{"href":"https://api.github.com/repos/chobie/jira-api-restclient/statuses/5100d3fe0d442a5ea2912bd765f40f5e89da8492"}}}}
{"actor":{"display_login":"aik099"}}