{"action":"created","comment":{"url":"https://api.github.com/repos/stripe/stripe-php/pulls/comments/39218928","id":39218928,"diff_hunk":"@@ -0,0 +1,26 @@\n+<?php\n+\n+namespace Stripe;\n+\n+class RateLimitErrorTest extends TestCase\n+{\n+    private function rateLimitErrorResponse()\n+    {\n+        return array(\n+            'error' => array(),\n+        );\n+    }\n+\n+    /**\n+     * @expectedException Error\\RateLimit\n+     */\n+    public function testRateLimit()","path":"tests/RateLimitErrorTest.php","position":17,"original_position":17,"commit_id":"12e514c396cdc04361d4abcec3db06409b2cc80a","original_commit_id":"12e514c396cdc04361d4abcec3db06409b2cc80a","user":{"login":"bkrausz","id":364070,"avatar_url":"https://avatars.githubusercontent.com/u/364070?v=3","gravatar_id":"","url":"https://api.github.com/users/bkrausz","html_url":"https://github.com/bkrausz","followers_url":"https://api.github.com/users/bkrausz/followers","following_url":"https://api.github.com/users/bkrausz/following{/other_user}","gists_url":"https://api.github.com/users/bkrausz/gists{/gist_id}","starred_url":"https://api.github.com/users/bkrausz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkrausz/subscriptions","organizations_url":"https://api.github.com/users/bkrausz/orgs","repos_url":"https://api.github.com/users/bkrausz/repos","events_url":"https://api.github.com/users/bkrausz/events{/privacy}","received_events_url":"https://api.github.com/users/bkrausz/received_events","type":"User","site_admin":false},"body":"But no strong preference, I just find the HTTP code test to be a little \"test that PHP runs properly\"-ish (though not blatantly so).","created_at":"2015-09-10T21:52:32Z","updated_at":"2015-09-10T21:52:32Z","html_url":"https://github.com/stripe/stripe-php/pull/192#discussion_r39218928","pull_request_url":"https://api.github.com/repos/stripe/stripe-php/pulls/192","_links":{"self":{"href":"https://api.github.com/repos/stripe/stripe-php/pulls/comments/39218928"},"html":{"href":"https://github.com/stripe/stripe-php/pull/192#discussion_r39218928"},"pull_request":{"href":"https://api.github.com/repos/stripe/stripe-php/pulls/192"}}},"pull_request":{"url":"https://api.github.com/repos/stripe/stripe-php/pulls/192","id":44507575,"html_url":"https://github.com/stripe/stripe-php/pull/192","diff_url":"https://github.com/stripe/stripe-php/pull/192.diff","patch_url":"https://github.com/stripe/stripe-php/pull/192.patch","issue_url":"https://api.github.com/repos/stripe/stripe-php/issues/192","number":192,"state":"open","locked":false,"title":"add 429 rate limit error and test","user":{"login":"jxu577","id":2760988,"avatar_url":"https://avatars.githubusercontent.com/u/2760988?v=3","gravatar_id":"","url":"https://api.github.com/users/jxu577","html_url":"https://github.com/jxu577","followers_url":"https://api.github.com/users/jxu577/followers","following_url":"https://api.github.com/users/jxu577/following{/other_user}","gists_url":"https://api.github.com/users/jxu577/gists{/gist_id}","starred_url":"https://api.github.com/users/jxu577/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jxu577/subscriptions","organizations_url":"https://api.github.com/users/jxu577/orgs","repos_url":"https://api.github.com/users/jxu577/repos","events_url":"https://api.github.com/users/jxu577/events{/privacy}","received_events_url":"https://api.github.com/users/jxu577/received_events","type":"User","site_admin":false},"body":"r? @kyleconroy ","created_at":"2015-09-09T03:38:41Z","updated_at":"2015-09-10T21:52:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdaeffd32c9a5639a612c30aa2de6a507444b283","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stripe/stripe-php/pulls/192/commits","review_comments_url":"https://api.github.com/repos/stripe/stripe-php/pulls/192/comments","review_comment_url":"https://api.github.com/repos/stripe/stripe-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stripe/stripe-php/issues/192/comments","statuses_url":"https://api.github.com/repos/stripe/stripe-php/statuses/12e514c396cdc04361d4abcec3db06409b2cc80a","head":{"label":"stripe:jacqueline-429-error","ref":"jacqueline-429-error","sha":"12e514c396cdc04361d4abcec3db06409b2cc80a","user":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"repo":{"id":1953386,"name":"stripe-php","full_name":"stripe/stripe-php","owner":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stripe/stripe-php","description":"Stripe PHP bindings","fork":false,"url":"https://api.github.com/repos/stripe/stripe-php","forks_url":"https://api.github.com/repos/stripe/stripe-php/forks","keys_url":"https://api.github.com/repos/stripe/stripe-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stripe/stripe-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stripe/stripe-php/teams","hooks_url":"https://api.github.com/repos/stripe/stripe-php/hooks","issue_events_url":"https://api.github.com/repos/stripe/stripe-php/issues/events{/number}","events_url":"https://api.github.com/repos/stripe/stripe-php/events","assignees_url":"https://api.github.com/repos/stripe/stripe-php/assignees{/user}","branches_url":"https://api.github.com/repos/stripe/stripe-php/branches{/branch}","tags_url":"https://api.github.com/repos/stripe/stripe-php/tags","blobs_url":"https://api.github.com/repos/stripe/stripe-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stripe/stripe-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stripe/stripe-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/stripe/stripe-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stripe/stripe-php/statuses/{sha}","languages_url":"https://api.github.com/repos/stripe/stripe-php/languages","stargazers_url":"https://api.github.com/repos/stripe/stripe-php/stargazers","contributors_url":"https://api.github.com/repos/stripe/stripe-php/contributors","subscribers_url":"https://api.github.com/repos/stripe/stripe-php/subscribers","subscription_url":"https://api.github.com/repos/stripe/stripe-php/subscription","commits_url":"https://api.github.com/repos/stripe/stripe-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/stripe/stripe-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/stripe/stripe-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/stripe/stripe-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/stripe/stripe-php/contents/{+path}","compare_url":"https://api.github.com/repos/stripe/stripe-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stripe/stripe-php/merges","archive_url":"https://api.github.com/repos/stripe/stripe-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stripe/stripe-php/downloads","issues_url":"https://api.github.com/repos/stripe/stripe-php/issues{/number}","pulls_url":"https://api.github.com/repos/stripe/stripe-php/pulls{/number}","milestones_url":"https://api.github.com/repos/stripe/stripe-php/milestones{/number}","notifications_url":"https://api.github.com/repos/stripe/stripe-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stripe/stripe-php/labels{/name}","releases_url":"https://api.github.com/repos/stripe/stripe-php/releases{/id}","created_at":"2011-06-25T19:52:24Z","updated_at":"2015-09-10T13:55:59Z","pushed_at":"2015-09-10T21:13:40Z","git_url":"git://github.com/stripe/stripe-php.git","ssh_url":"git@github.com:stripe/stripe-php.git","clone_url":"https://github.com/stripe/stripe-php.git","svn_url":"https://github.com/stripe/stripe-php","homepage":"https://stripe.com","size":2688,"stargazers_count":720,"watchers_count":720,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":175,"mirror_url":null,"open_issues_count":6,"forks":175,"open_issues":6,"watchers":720,"default_branch":"master"}},"base":{"label":"stripe:master","ref":"master","sha":"2a82bd1e7ac3318747f2df8532cbee2fe28c049e","user":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"repo":{"id":1953386,"name":"stripe-php","full_name":"stripe/stripe-php","owner":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stripe/stripe-php","description":"Stripe PHP bindings","fork":false,"url":"https://api.github.com/repos/stripe/stripe-php","forks_url":"https://api.github.com/repos/stripe/stripe-php/forks","keys_url":"https://api.github.com/repos/stripe/stripe-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stripe/stripe-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stripe/stripe-php/teams","hooks_url":"https://api.github.com/repos/stripe/stripe-php/hooks","issue_events_url":"https://api.github.com/repos/stripe/stripe-php/issues/events{/number}","events_url":"https://api.github.com/repos/stripe/stripe-php/events","assignees_url":"https://api.github.com/repos/stripe/stripe-php/assignees{/user}","branches_url":"https://api.github.com/repos/stripe/stripe-php/branches{/branch}","tags_url":"https://api.github.com/repos/stripe/stripe-php/tags","blobs_url":"https://api.github.com/repos/stripe/stripe-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stripe/stripe-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stripe/stripe-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/stripe/stripe-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stripe/stripe-php/statuses/{sha}","languages_url":"https://api.github.com/repos/stripe/stripe-php/languages","stargazers_url":"https://api.github.com/repos/stripe/stripe-php/stargazers","contributors_url":"https://api.github.com/repos/stripe/stripe-php/contributors","subscribers_url":"https://api.github.com/repos/stripe/stripe-php/subscribers","subscription_url":"https://api.github.com/repos/stripe/stripe-php/subscription","commits_url":"https://api.github.com/repos/stripe/stripe-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/stripe/stripe-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/stripe/stripe-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/stripe/stripe-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/stripe/stripe-php/contents/{+path}","compare_url":"https://api.github.com/repos/stripe/stripe-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stripe/stripe-php/merges","archive_url":"https://api.github.com/repos/stripe/stripe-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stripe/stripe-php/downloads","issues_url":"https://api.github.com/repos/stripe/stripe-php/issues{/number}","pulls_url":"https://api.github.com/repos/stripe/stripe-php/pulls{/number}","milestones_url":"https://api.github.com/repos/stripe/stripe-php/milestones{/number}","notifications_url":"https://api.github.com/repos/stripe/stripe-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stripe/stripe-php/labels{/name}","releases_url":"https://api.github.com/repos/stripe/stripe-php/releases{/id}","created_at":"2011-06-25T19:52:24Z","updated_at":"2015-09-10T13:55:59Z","pushed_at":"2015-09-10T21:13:40Z","git_url":"git://github.com/stripe/stripe-php.git","ssh_url":"git@github.com:stripe/stripe-php.git","clone_url":"https://github.com/stripe/stripe-php.git","svn_url":"https://github.com/stripe/stripe-php","homepage":"https://stripe.com","size":2688,"stargazers_count":720,"watchers_count":720,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":175,"mirror_url":null,"open_issues_count":6,"forks":175,"open_issues":6,"watchers":720,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stripe/stripe-php/pulls/192"},"html":{"href":"https://github.com/stripe/stripe-php/pull/192"},"issue":{"href":"https://api.github.com/repos/stripe/stripe-php/issues/192"},"comments":{"href":"https://api.github.com/repos/stripe/stripe-php/issues/192/comments"},"review_comments":{"href":"https://api.github.com/repos/stripe/stripe-php/pulls/192/comments"},"review_comment":{"href":"https://api.github.com/repos/stripe/stripe-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stripe/stripe-php/pulls/192/commits"},"statuses":{"href":"https://api.github.com/repos/stripe/stripe-php/statuses/12e514c396cdc04361d4abcec3db06409b2cc80a"}}}}