{"action":"created","comment":{"url":"https://api.github.com/repos/elifesciences/api-client-php/pulls/comments/87761462","pull_request_review_id":8359538,"id":87761462,"diff_hunk":"@@ -0,0 +1,21 @@\n+<?php\n+\n+namespace eLife\\ApiClient\\HttpClient;\n+\n+use GuzzleHttp\\Psr7\\Request;\n+use PHPUnit_Framework_TestCase;\n+\n+final class ForbiddingHttpClientTest extends PHPUnit_Framework_TestCase\n+{\n+    /**\n+     * @test\n+     * @expectedException LogicException","path":"test/HttpClient/ForbiddingHttpClientTest.php","position":12,"original_position":12,"commit_id":"45e80d67829766f1ba65bd603b12f79f19a7ccec","original_commit_id":"45e80d67829766f1ba65bd603b12f79f19a7ccec","user":{"login":"thewilkybarkid","id":1784740,"avatar_url":"https://avatars.githubusercontent.com/u/1784740?v=3","gravatar_id":"","url":"https://api.github.com/users/thewilkybarkid","html_url":"https://github.com/thewilkybarkid","followers_url":"https://api.github.com/users/thewilkybarkid/followers","following_url":"https://api.github.com/users/thewilkybarkid/following{/other_user}","gists_url":"https://api.github.com/users/thewilkybarkid/gists{/gist_id}","starred_url":"https://api.github.com/users/thewilkybarkid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewilkybarkid/subscriptions","organizations_url":"https://api.github.com/users/thewilkybarkid/orgs","repos_url":"https://api.github.com/users/thewilkybarkid/repos","events_url":"https://api.github.com/users/thewilkybarkid/events{/privacy}","received_events_url":"https://api.github.com/users/thewilkybarkid/received_events","type":"User","site_admin":false},"body":"I'd rather use `$this->expectException(...)` after the constructor.","created_at":"2016-11-14T09:17:04Z","updated_at":"2016-11-14T09:17:04Z","html_url":"https://github.com/elifesciences/api-client-php/pull/36#discussion_r87761462","pull_request_url":"https://api.github.com/repos/elifesciences/api-client-php/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/elifesciences/api-client-php/pulls/comments/87761462"},"html":{"href":"https://github.com/elifesciences/api-client-php/pull/36#discussion_r87761462"},"pull_request":{"href":"https://api.github.com/repos/elifesciences/api-client-php/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/elifesciences/api-client-php/pulls/36","id":93528563,"html_url":"https://github.com/elifesciences/api-client-php/pull/36","diff_url":"https://github.com/elifesciences/api-client-php/pull/36.diff","patch_url":"https://github.com/elifesciences/api-client-php/pull/36.patch","issue_url":"https://api.github.com/repos/elifesciences/api-client-php/issues/36","number":36,"state":"open","locked":false,"title":"Added ForbiddingHttpClient","user":{"login":"giorgiosironi","id":160299,"avatar_url":"https://avatars.githubusercontent.com/u/160299?v=3","gravatar_id":"","url":"https://api.github.com/users/giorgiosironi","html_url":"https://github.com/giorgiosironi","followers_url":"https://api.github.com/users/giorgiosironi/followers","following_url":"https://api.github.com/users/giorgiosironi/following{/other_user}","gists_url":"https://api.github.com/users/giorgiosironi/gists{/gist_id}","starred_url":"https://api.github.com/users/giorgiosironi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giorgiosironi/subscriptions","organizations_url":"https://api.github.com/users/giorgiosironi/orgs","repos_url":"https://api.github.com/users/giorgiosironi/repos","events_url":"https://api.github.com/users/giorgiosironi/events{/privacy}","received_events_url":"https://api.github.com/users/giorgiosironi/received_events","type":"User","site_admin":false},"body":"Useful for tests that want to check they do not interact with the server","created_at":"2016-11-14T08:58:00Z","updated_at":"2016-11-14T09:17:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d805fd6c98e87ebe12d1a4888a4ec09f6b7ff44","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/elifesciences/api-client-php/pulls/36/commits","review_comments_url":"https://api.github.com/repos/elifesciences/api-client-php/pulls/36/comments","review_comment_url":"https://api.github.com/repos/elifesciences/api-client-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elifesciences/api-client-php/issues/36/comments","statuses_url":"https://api.github.com/repos/elifesciences/api-client-php/statuses/45e80d67829766f1ba65bd603b12f79f19a7ccec","head":{"label":"elifesciences:forbidding_http_client","ref":"forbidding_http_client","sha":"45e80d67829766f1ba65bd603b12f79f19a7ccec","user":{"login":"elifesciences","id":1777367,"avatar_url":"https://avatars.githubusercontent.com/u/1777367?v=3","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"repo":{"id":60767798,"name":"api-client-php","full_name":"elifesciences/api-client-php","owner":{"login":"elifesciences","id":1777367,"avatar_url":"https://avatars.githubusercontent.com/u/1777367?v=3","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elifesciences/api-client-php","description":"PHP client for the eLife Sciences API [in development]","fork":false,"url":"https://api.github.com/repos/elifesciences/api-client-php","forks_url":"https://api.github.com/repos/elifesciences/api-client-php/forks","keys_url":"https://api.github.com/repos/elifesciences/api-client-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elifesciences/api-client-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elifesciences/api-client-php/teams","hooks_url":"https://api.github.com/repos/elifesciences/api-client-php/hooks","issue_events_url":"https://api.github.com/repos/elifesciences/api-client-php/issues/events{/number}","events_url":"https://api.github.com/repos/elifesciences/api-client-php/events","assignees_url":"https://api.github.com/repos/elifesciences/api-client-php/assignees{/user}","branches_url":"https://api.github.com/repos/elifesciences/api-client-php/branches{/branch}","tags_url":"https://api.github.com/repos/elifesciences/api-client-php/tags","blobs_url":"https://api.github.com/repos/elifesciences/api-client-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elifesciences/api-client-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elifesciences/api-client-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/elifesciences/api-client-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elifesciences/api-client-php/statuses/{sha}","languages_url":"https://api.github.com/repos/elifesciences/api-client-php/languages","stargazers_url":"https://api.github.com/repos/elifesciences/api-client-php/stargazers","contributors_url":"https://api.github.com/repos/elifesciences/api-client-php/contributors","subscribers_url":"https://api.github.com/repos/elifesciences/api-client-php/subscribers","subscription_url":"https://api.github.com/repos/elifesciences/api-client-php/subscription","commits_url":"https://api.github.com/repos/elifesciences/api-client-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/elifesciences/api-client-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/elifesciences/api-client-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/elifesciences/api-client-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/elifesciences/api-client-php/contents/{+path}","compare_url":"https://api.github.com/repos/elifesciences/api-client-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elifesciences/api-client-php/merges","archive_url":"https://api.github.com/repos/elifesciences/api-client-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elifesciences/api-client-php/downloads","issues_url":"https://api.github.com/repos/elifesciences/api-client-php/issues{/number}","pulls_url":"https://api.github.com/repos/elifesciences/api-client-php/pulls{/number}","milestones_url":"https://api.github.com/repos/elifesciences/api-client-php/milestones{/number}","notifications_url":"https://api.github.com/repos/elifesciences/api-client-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elifesciences/api-client-php/labels{/name}","releases_url":"https://api.github.com/repos/elifesciences/api-client-php/releases{/id}","deployments_url":"https://api.github.com/repos/elifesciences/api-client-php/deployments","created_at":"2016-06-09T10:54:57Z","updated_at":"2016-09-01T15:23:32Z","pushed_at":"2016-11-14T09:00:56Z","git_url":"git://github.com/elifesciences/api-client-php.git","ssh_url":"git@github.com:elifesciences/api-client-php.git","clone_url":"https://github.com/elifesciences/api-client-php.git","svn_url":"https://github.com/elifesciences/api-client-php","homepage":"","size":72,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"elifesciences:master","ref":"master","sha":"151240212e3d5d3dfd147f4485c487aaf5b307a0","user":{"login":"elifesciences","id":1777367,"avatar_url":"https://avatars.githubusercontent.com/u/1777367?v=3","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"repo":{"id":60767798,"name":"api-client-php","full_name":"elifesciences/api-client-php","owner":{"login":"elifesciences","id":1777367,"avatar_url":"https://avatars.githubusercontent.com/u/1777367?v=3","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elifesciences/api-client-php","description":"PHP client for the eLife Sciences API [in development]","fork":false,"url":"https://api.github.com/repos/elifesciences/api-client-php","forks_url":"https://api.github.com/repos/elifesciences/api-client-php/forks","keys_url":"https://api.github.com/repos/elifesciences/api-client-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elifesciences/api-client-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elifesciences/api-client-php/teams","hooks_url":"https://api.github.com/repos/elifesciences/api-client-php/hooks","issue_events_url":"https://api.github.com/repos/elifesciences/api-client-php/issues/events{/number}","events_url":"https://api.github.com/repos/elifesciences/api-client-php/events","assignees_url":"https://api.github.com/repos/elifesciences/api-client-php/assignees{/user}","branches_url":"https://api.github.com/repos/elifesciences/api-client-php/branches{/branch}","tags_url":"https://api.github.com/repos/elifesciences/api-client-php/tags","blobs_url":"https://api.github.com/repos/elifesciences/api-client-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elifesciences/api-client-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elifesciences/api-client-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/elifesciences/api-client-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elifesciences/api-client-php/statuses/{sha}","languages_url":"https://api.github.com/repos/elifesciences/api-client-php/languages","stargazers_url":"https://api.github.com/repos/elifesciences/api-client-php/stargazers","contributors_url":"https://api.github.com/repos/elifesciences/api-client-php/contributors","subscribers_url":"https://api.github.com/repos/elifesciences/api-client-php/subscribers","subscription_url":"https://api.github.com/repos/elifesciences/api-client-php/subscription","commits_url":"https://api.github.com/repos/elifesciences/api-client-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/elifesciences/api-client-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/elifesciences/api-client-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/elifesciences/api-client-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/elifesciences/api-client-php/contents/{+path}","compare_url":"https://api.github.com/repos/elifesciences/api-client-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elifesciences/api-client-php/merges","archive_url":"https://api.github.com/repos/elifesciences/api-client-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elifesciences/api-client-php/downloads","issues_url":"https://api.github.com/repos/elifesciences/api-client-php/issues{/number}","pulls_url":"https://api.github.com/repos/elifesciences/api-client-php/pulls{/number}","milestones_url":"https://api.github.com/repos/elifesciences/api-client-php/milestones{/number}","notifications_url":"https://api.github.com/repos/elifesciences/api-client-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elifesciences/api-client-php/labels{/name}","releases_url":"https://api.github.com/repos/elifesciences/api-client-php/releases{/id}","deployments_url":"https://api.github.com/repos/elifesciences/api-client-php/deployments","created_at":"2016-06-09T10:54:57Z","updated_at":"2016-09-01T15:23:32Z","pushed_at":"2016-11-14T09:00:56Z","git_url":"git://github.com/elifesciences/api-client-php.git","ssh_url":"git@github.com:elifesciences/api-client-php.git","clone_url":"https://github.com/elifesciences/api-client-php.git","svn_url":"https://github.com/elifesciences/api-client-php","homepage":"","size":72,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elifesciences/api-client-php/pulls/36"},"html":{"href":"https://github.com/elifesciences/api-client-php/pull/36"},"issue":{"href":"https://api.github.com/repos/elifesciences/api-client-php/issues/36"},"comments":{"href":"https://api.github.com/repos/elifesciences/api-client-php/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/elifesciences/api-client-php/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/elifesciences/api-client-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elifesciences/api-client-php/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/elifesciences/api-client-php/statuses/45e80d67829766f1ba65bd603b12f79f19a7ccec"}}}}
{"actor":{"display_login":"thewilkybarkid"}}