{"action":"created","comment":{"url":"https://api.github.com/repos/c9s/CodeGen/pulls/comments/43255507","id":43255507,"diff_hunk":"@@ -0,0 +1,24 @@\n+<?php\n+use CodeGen\\Statement\\TryCatchStatement;\n+use CodeGen\\Testing\\CodeGenTestCase;\n+\n+class TryCatchStatementTest extends CodeGenTestCase\n+{\n+\n+    public function testEmptyTryCatch()\n+    {\n+        $tryCatch = new TryCatchStatement();\n+        $this->assertCodeEqualsFile('tests/data/try_catch_empty.fixture', $tryCatch);\n+\n+    }\n+\n+    public function testTryCatch()\n+    {\n+        $tryCatch = new TryCatchStatement();\n+        $tryCatch->tryBlock->appendLine('$x =1;');\n+\n+        $tryCatch->throwBlock->appendLine('throw $e');","path":"tests/CodeGen/Statement/TryCatchStatementTest.php","position":20,"original_position":20,"commit_id":"5be115c583d29ce684267e460c2760fd2316261c","original_commit_id":"5be115c583d29ce684267e460c2760fd2316261c","user":{"login":"dafik","id":3379462,"avatar_url":"https://avatars.githubusercontent.com/u/3379462?v=3","gravatar_id":"","url":"https://api.github.com/users/dafik","html_url":"https://github.com/dafik","followers_url":"https://api.github.com/users/dafik/followers","following_url":"https://api.github.com/users/dafik/following{/other_user}","gists_url":"https://api.github.com/users/dafik/gists{/gist_id}","starred_url":"https://api.github.com/users/dafik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dafik/subscriptions","organizations_url":"https://api.github.com/users/dafik/orgs","repos_url":"https://api.github.com/users/dafik/repos","events_url":"https://api.github.com/users/dafik/events{/privacy}","received_events_url":"https://api.github.com/users/dafik/received_events","type":"User","site_admin":false},"body":"ok no problem\r\n","created_at":"2015-10-28T13:38:57Z","updated_at":"2015-10-28T13:38:57Z","html_url":"https://github.com/c9s/CodeGen/pull/11#discussion_r43255507","pull_request_url":"https://api.github.com/repos/c9s/CodeGen/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/c9s/CodeGen/pulls/comments/43255507"},"html":{"href":"https://github.com/c9s/CodeGen/pull/11#discussion_r43255507"},"pull_request":{"href":"https://api.github.com/repos/c9s/CodeGen/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/c9s/CodeGen/pulls/11","id":48992451,"html_url":"https://github.com/c9s/CodeGen/pull/11","diff_url":"https://github.com/c9s/CodeGen/pull/11.diff","patch_url":"https://github.com/c9s/CodeGen/pull/11.patch","issue_url":"https://api.github.com/repos/c9s/CodeGen/issues/11","number":11,"state":"open","locked":false,"title":"code reformat +  optimize imports  + few tests + object property + small bugfixes","user":{"login":"dafik","id":3379462,"avatar_url":"https://avatars.githubusercontent.com/u/3379462?v=3","gravatar_id":"","url":"https://api.github.com/users/dafik","html_url":"https://github.com/dafik","followers_url":"https://api.github.com/users/dafik/followers","following_url":"https://api.github.com/users/dafik/following{/other_user}","gists_url":"https://api.github.com/users/dafik/gists{/gist_id}","starred_url":"https://api.github.com/users/dafik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dafik/subscriptions","organizations_url":"https://api.github.com/users/dafik/orgs","repos_url":"https://api.github.com/users/dafik/repos","events_url":"https://api.github.com/users/dafik/events{/privacy}","received_events_url":"https://api.github.com/users/dafik/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-28T11:18:54Z","updated_at":"2015-10-28T13:38:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c39a6b26504308252bdd80ead80a9ff1deb48bab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/c9s/CodeGen/pulls/11/commits","review_comments_url":"https://api.github.com/repos/c9s/CodeGen/pulls/11/comments","review_comment_url":"https://api.github.com/repos/c9s/CodeGen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/c9s/CodeGen/issues/11/comments","statuses_url":"https://api.github.com/repos/c9s/CodeGen/statuses/5be115c583d29ce684267e460c2760fd2316261c","head":{"label":"dafik:master","ref":"master","sha":"5be115c583d29ce684267e460c2760fd2316261c","user":{"login":"dafik","id":3379462,"avatar_url":"https://avatars.githubusercontent.com/u/3379462?v=3","gravatar_id":"","url":"https://api.github.com/users/dafik","html_url":"https://github.com/dafik","followers_url":"https://api.github.com/users/dafik/followers","following_url":"https://api.github.com/users/dafik/following{/other_user}","gists_url":"https://api.github.com/users/dafik/gists{/gist_id}","starred_url":"https://api.github.com/users/dafik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dafik/subscriptions","organizations_url":"https://api.github.com/users/dafik/orgs","repos_url":"https://api.github.com/users/dafik/repos","events_url":"https://api.github.com/users/dafik/events{/privacy}","received_events_url":"https://api.github.com/users/dafik/received_events","type":"User","site_admin":false},"repo":{"id":44587201,"name":"CodeGen","full_name":"dafik/CodeGen","owner":{"login":"dafik","id":3379462,"avatar_url":"https://avatars.githubusercontent.com/u/3379462?v=3","gravatar_id":"","url":"https://api.github.com/users/dafik","html_url":"https://github.com/dafik","followers_url":"https://api.github.com/users/dafik/followers","following_url":"https://api.github.com/users/dafik/following{/other_user}","gists_url":"https://api.github.com/users/dafik/gists{/gist_id}","starred_url":"https://api.github.com/users/dafik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dafik/subscriptions","organizations_url":"https://api.github.com/users/dafik/orgs","repos_url":"https://api.github.com/users/dafik/repos","events_url":"https://api.github.com/users/dafik/events{/privacy}","received_events_url":"https://api.github.com/users/dafik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dafik/CodeGen","description":"Transform your dynamic calls to static calls!","fork":true,"url":"https://api.github.com/repos/dafik/CodeGen","forks_url":"https://api.github.com/repos/dafik/CodeGen/forks","keys_url":"https://api.github.com/repos/dafik/CodeGen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dafik/CodeGen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dafik/CodeGen/teams","hooks_url":"https://api.github.com/repos/dafik/CodeGen/hooks","issue_events_url":"https://api.github.com/repos/dafik/CodeGen/issues/events{/number}","events_url":"https://api.github.com/repos/dafik/CodeGen/events","assignees_url":"https://api.github.com/repos/dafik/CodeGen/assignees{/user}","branches_url":"https://api.github.com/repos/dafik/CodeGen/branches{/branch}","tags_url":"https://api.github.com/repos/dafik/CodeGen/tags","blobs_url":"https://api.github.com/repos/dafik/CodeGen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dafik/CodeGen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dafik/CodeGen/git/refs{/sha}","trees_url":"https://api.github.com/repos/dafik/CodeGen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dafik/CodeGen/statuses/{sha}","languages_url":"https://api.github.com/repos/dafik/CodeGen/languages","stargazers_url":"https://api.github.com/repos/dafik/CodeGen/stargazers","contributors_url":"https://api.github.com/repos/dafik/CodeGen/contributors","subscribers_url":"https://api.github.com/repos/dafik/CodeGen/subscribers","subscription_url":"https://api.github.com/repos/dafik/CodeGen/subscription","commits_url":"https://api.github.com/repos/dafik/CodeGen/commits{/sha}","git_commits_url":"https://api.github.com/repos/dafik/CodeGen/git/commits{/sha}","comments_url":"https://api.github.com/repos/dafik/CodeGen/comments{/number}","issue_comment_url":"https://api.github.com/repos/dafik/CodeGen/issues/comments{/number}","contents_url":"https://api.github.com/repos/dafik/CodeGen/contents/{+path}","compare_url":"https://api.github.com/repos/dafik/CodeGen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dafik/CodeGen/merges","archive_url":"https://api.github.com/repos/dafik/CodeGen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dafik/CodeGen/downloads","issues_url":"https://api.github.com/repos/dafik/CodeGen/issues{/number}","pulls_url":"https://api.github.com/repos/dafik/CodeGen/pulls{/number}","milestones_url":"https://api.github.com/repos/dafik/CodeGen/milestones{/number}","notifications_url":"https://api.github.com/repos/dafik/CodeGen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dafik/CodeGen/labels{/name}","releases_url":"https://api.github.com/repos/dafik/CodeGen/releases{/id}","created_at":"2015-10-20T06:40:31Z","updated_at":"2015-10-20T06:40:32Z","pushed_at":"2015-10-28T11:04:33Z","git_url":"git://github.com/dafik/CodeGen.git","ssh_url":"git@github.com:dafik/CodeGen.git","clone_url":"https://github.com/dafik/CodeGen.git","svn_url":"https://github.com/dafik/CodeGen","homepage":"","size":194,"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":"c9s:master","ref":"master","sha":"12b8b8755311915b19606c1dc29bb1ef725504b1","user":{"login":"c9s","id":50894,"avatar_url":"https://avatars.githubusercontent.com/u/50894?v=3","gravatar_id":"","url":"https://api.github.com/users/c9s","html_url":"https://github.com/c9s","followers_url":"https://api.github.com/users/c9s/followers","following_url":"https://api.github.com/users/c9s/following{/other_user}","gists_url":"https://api.github.com/users/c9s/gists{/gist_id}","starred_url":"https://api.github.com/users/c9s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c9s/subscriptions","organizations_url":"https://api.github.com/users/c9s/orgs","repos_url":"https://api.github.com/users/c9s/repos","events_url":"https://api.github.com/users/c9s/events{/privacy}","received_events_url":"https://api.github.com/users/c9s/received_events","type":"User","site_admin":false},"repo":{"id":33909694,"name":"CodeGen","full_name":"c9s/CodeGen","owner":{"login":"c9s","id":50894,"avatar_url":"https://avatars.githubusercontent.com/u/50894?v=3","gravatar_id":"","url":"https://api.github.com/users/c9s","html_url":"https://github.com/c9s","followers_url":"https://api.github.com/users/c9s/followers","following_url":"https://api.github.com/users/c9s/following{/other_user}","gists_url":"https://api.github.com/users/c9s/gists{/gist_id}","starred_url":"https://api.github.com/users/c9s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c9s/subscriptions","organizations_url":"https://api.github.com/users/c9s/orgs","repos_url":"https://api.github.com/users/c9s/repos","events_url":"https://api.github.com/users/c9s/events{/privacy}","received_events_url":"https://api.github.com/users/c9s/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/c9s/CodeGen","description":"Transform your dynamic calls to static calls!","fork":false,"url":"https://api.github.com/repos/c9s/CodeGen","forks_url":"https://api.github.com/repos/c9s/CodeGen/forks","keys_url":"https://api.github.com/repos/c9s/CodeGen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/c9s/CodeGen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/c9s/CodeGen/teams","hooks_url":"https://api.github.com/repos/c9s/CodeGen/hooks","issue_events_url":"https://api.github.com/repos/c9s/CodeGen/issues/events{/number}","events_url":"https://api.github.com/repos/c9s/CodeGen/events","assignees_url":"https://api.github.com/repos/c9s/CodeGen/assignees{/user}","branches_url":"https://api.github.com/repos/c9s/CodeGen/branches{/branch}","tags_url":"https://api.github.com/repos/c9s/CodeGen/tags","blobs_url":"https://api.github.com/repos/c9s/CodeGen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/c9s/CodeGen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/c9s/CodeGen/git/refs{/sha}","trees_url":"https://api.github.com/repos/c9s/CodeGen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/c9s/CodeGen/statuses/{sha}","languages_url":"https://api.github.com/repos/c9s/CodeGen/languages","stargazers_url":"https://api.github.com/repos/c9s/CodeGen/stargazers","contributors_url":"https://api.github.com/repos/c9s/CodeGen/contributors","subscribers_url":"https://api.github.com/repos/c9s/CodeGen/subscribers","subscription_url":"https://api.github.com/repos/c9s/CodeGen/subscription","commits_url":"https://api.github.com/repos/c9s/CodeGen/commits{/sha}","git_commits_url":"https://api.github.com/repos/c9s/CodeGen/git/commits{/sha}","comments_url":"https://api.github.com/repos/c9s/CodeGen/comments{/number}","issue_comment_url":"https://api.github.com/repos/c9s/CodeGen/issues/comments{/number}","contents_url":"https://api.github.com/repos/c9s/CodeGen/contents/{+path}","compare_url":"https://api.github.com/repos/c9s/CodeGen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/c9s/CodeGen/merges","archive_url":"https://api.github.com/repos/c9s/CodeGen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/c9s/CodeGen/downloads","issues_url":"https://api.github.com/repos/c9s/CodeGen/issues{/number}","pulls_url":"https://api.github.com/repos/c9s/CodeGen/pulls{/number}","milestones_url":"https://api.github.com/repos/c9s/CodeGen/milestones{/number}","notifications_url":"https://api.github.com/repos/c9s/CodeGen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/c9s/CodeGen/labels{/name}","releases_url":"https://api.github.com/repos/c9s/CodeGen/releases{/id}","created_at":"2015-04-14T03:55:41Z","updated_at":"2015-10-15T11:23:45Z","pushed_at":"2015-10-28T11:18:54Z","git_url":"git://github.com/c9s/CodeGen.git","ssh_url":"git@github.com:c9s/CodeGen.git","clone_url":"https://github.com/c9s/CodeGen.git","svn_url":"https://github.com/c9s/CodeGen","homepage":"","size":401,"stargazers_count":16,"watchers_count":16,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/c9s/CodeGen/pulls/11"},"html":{"href":"https://github.com/c9s/CodeGen/pull/11"},"issue":{"href":"https://api.github.com/repos/c9s/CodeGen/issues/11"},"comments":{"href":"https://api.github.com/repos/c9s/CodeGen/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/c9s/CodeGen/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/c9s/CodeGen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/c9s/CodeGen/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/c9s/CodeGen/statuses/5be115c583d29ce684267e460c2760fd2316261c"}}}}