{"action":"created","comment":{"url":"https://api.github.com/repos/youhey/php-optional/pulls/comments/58040084","id":58040084,"diff_hunk":"@@ -296,6 +295,28 @@ public function orElseThrowTheEmptyValue()\n         $result = $empty_optional->orElseThrow('\\\\BadFunctionCallException');\n     }\n \n+    /**\n+     * @test\n+     * @expectedException RuntimeException\n+     * @expectedExceptionMessage '\\ArrayObject' not implement Throwable.\n+     */\n+    public function orElseThrowTheNotThrowable()\n+    {\n+        $empty_optional = Optional::void();\n+        $result = $empty_optional->orElseThrow('\\\\ArrayObject');\n+    }\n+\n+    /**\n+     * @test\n+     * @expectedException RuntimeException\n+     * @expectedExceptionMessage 'UnknownException' exception does not exist.\n+     */\n+    public function orElseThrowTheExceptionDoesNotExists()\n+    {\n+        $empty_optional = Optional::void();","path":"tests/OptionalTest.php","position":30,"original_position":30,"commit_id":"dc1afe4fbfa8e4c72035d552227e94a9adebd084","original_commit_id":"dc1afe4fbfa8e4c72035d552227e94a9adebd084","user":{"login":"youhey","id":504187,"avatar_url":"https://avatars.githubusercontent.com/u/504187?v=3","gravatar_id":"","url":"https://api.github.com/users/youhey","html_url":"https://github.com/youhey","followers_url":"https://api.github.com/users/youhey/followers","following_url":"https://api.github.com/users/youhey/following{/other_user}","gists_url":"https://api.github.com/users/youhey/gists{/gist_id}","starred_url":"https://api.github.com/users/youhey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youhey/subscriptions","organizations_url":"https://api.github.com/users/youhey/orgs","repos_url":"https://api.github.com/users/youhey/repos","events_url":"https://api.github.com/users/youhey/events{/privacy}","received_events_url":"https://api.github.com/users/youhey/received_events","type":"User","site_admin":false},"body":"__[phpmd]__\n* Avoid using static access to class 'PhpOptional\\Optional' in method 'orElseThrowTheExceptionDoesNotExists'.","created_at":"2016-03-31T11:45:19Z","updated_at":"2016-03-31T11:45:19Z","html_url":"https://github.com/youhey/php-optional/pull/1#discussion_r58040084","pull_request_url":"https://api.github.com/repos/youhey/php-optional/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/youhey/php-optional/pulls/comments/58040084"},"html":{"href":"https://github.com/youhey/php-optional/pull/1#discussion_r58040084"},"pull_request":{"href":"https://api.github.com/repos/youhey/php-optional/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/youhey/php-optional/pulls/1","id":64622835,"html_url":"https://github.com/youhey/php-optional/pull/1","diff_url":"https://github.com/youhey/php-optional/pull/1.diff","patch_url":"https://github.com/youhey/php-optional/pull/1.patch","issue_url":"https://api.github.com/repos/youhey/php-optional/issues/1","number":1,"state":"open","locked":false,"title":"Optionalクラスを継承して拡張しやすいよう修正","user":{"login":"youhey","id":504187,"avatar_url":"https://avatars.githubusercontent.com/u/504187?v=3","gravatar_id":"","url":"https://api.github.com/users/youhey","html_url":"https://github.com/youhey","followers_url":"https://api.github.com/users/youhey/followers","following_url":"https://api.github.com/users/youhey/following{/other_user}","gists_url":"https://api.github.com/users/youhey/gists{/gist_id}","starred_url":"https://api.github.com/users/youhey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youhey/subscriptions","organizations_url":"https://api.github.com/users/youhey/orgs","repos_url":"https://api.github.com/users/youhey/repos","events_url":"https://api.github.com/users/youhey/events{/privacy}","received_events_url":"https://api.github.com/users/youhey/received_events","type":"User","site_admin":false},"body":"個々の処理でメンバ変数を直に操作していた箇所を、適切なメソッド経由で操作するよう修正","created_at":"2016-03-30T12:59:40Z","updated_at":"2016-03-31T11:45:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3acc4b310016e4f20416426dc567d33a61ff393c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/youhey/php-optional/pulls/1/commits","review_comments_url":"https://api.github.com/repos/youhey/php-optional/pulls/1/comments","review_comment_url":"https://api.github.com/repos/youhey/php-optional/pulls/comments{/number}","comments_url":"https://api.github.com/repos/youhey/php-optional/issues/1/comments","statuses_url":"https://api.github.com/repos/youhey/php-optional/statuses/dc1afe4fbfa8e4c72035d552227e94a9adebd084","head":{"label":"youhey:develop","ref":"develop","sha":"dc1afe4fbfa8e4c72035d552227e94a9adebd084","user":{"login":"youhey","id":504187,"avatar_url":"https://avatars.githubusercontent.com/u/504187?v=3","gravatar_id":"","url":"https://api.github.com/users/youhey","html_url":"https://github.com/youhey","followers_url":"https://api.github.com/users/youhey/followers","following_url":"https://api.github.com/users/youhey/following{/other_user}","gists_url":"https://api.github.com/users/youhey/gists{/gist_id}","starred_url":"https://api.github.com/users/youhey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youhey/subscriptions","organizations_url":"https://api.github.com/users/youhey/orgs","repos_url":"https://api.github.com/users/youhey/repos","events_url":"https://api.github.com/users/youhey/events{/privacy}","received_events_url":"https://api.github.com/users/youhey/received_events","type":"User","site_admin":false},"repo":{"id":54636533,"name":"php-optional","full_name":"youhey/php-optional","owner":{"login":"youhey","id":504187,"avatar_url":"https://avatars.githubusercontent.com/u/504187?v=3","gravatar_id":"","url":"https://api.github.com/users/youhey","html_url":"https://github.com/youhey","followers_url":"https://api.github.com/users/youhey/followers","following_url":"https://api.github.com/users/youhey/following{/other_user}","gists_url":"https://api.github.com/users/youhey/gists{/gist_id}","starred_url":"https://api.github.com/users/youhey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youhey/subscriptions","organizations_url":"https://api.github.com/users/youhey/orgs","repos_url":"https://api.github.com/users/youhey/repos","events_url":"https://api.github.com/users/youhey/events{/privacy}","received_events_url":"https://api.github.com/users/youhey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/youhey/php-optional","description":"java.util.Optional like a PHP container object","fork":false,"url":"https://api.github.com/repos/youhey/php-optional","forks_url":"https://api.github.com/repos/youhey/php-optional/forks","keys_url":"https://api.github.com/repos/youhey/php-optional/keys{/key_id}","collaborators_url":"https://api.github.com/repos/youhey/php-optional/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/youhey/php-optional/teams","hooks_url":"https://api.github.com/repos/youhey/php-optional/hooks","issue_events_url":"https://api.github.com/repos/youhey/php-optional/issues/events{/number}","events_url":"https://api.github.com/repos/youhey/php-optional/events","assignees_url":"https://api.github.com/repos/youhey/php-optional/assignees{/user}","branches_url":"https://api.github.com/repos/youhey/php-optional/branches{/branch}","tags_url":"https://api.github.com/repos/youhey/php-optional/tags","blobs_url":"https://api.github.com/repos/youhey/php-optional/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/youhey/php-optional/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/youhey/php-optional/git/refs{/sha}","trees_url":"https://api.github.com/repos/youhey/php-optional/git/trees{/sha}","statuses_url":"https://api.github.com/repos/youhey/php-optional/statuses/{sha}","languages_url":"https://api.github.com/repos/youhey/php-optional/languages","stargazers_url":"https://api.github.com/repos/youhey/php-optional/stargazers","contributors_url":"https://api.github.com/repos/youhey/php-optional/contributors","subscribers_url":"https://api.github.com/repos/youhey/php-optional/subscribers","subscription_url":"https://api.github.com/repos/youhey/php-optional/subscription","commits_url":"https://api.github.com/repos/youhey/php-optional/commits{/sha}","git_commits_url":"https://api.github.com/repos/youhey/php-optional/git/commits{/sha}","comments_url":"https://api.github.com/repos/youhey/php-optional/comments{/number}","issue_comment_url":"https://api.github.com/repos/youhey/php-optional/issues/comments{/number}","contents_url":"https://api.github.com/repos/youhey/php-optional/contents/{+path}","compare_url":"https://api.github.com/repos/youhey/php-optional/compare/{base}...{head}","merges_url":"https://api.github.com/repos/youhey/php-optional/merges","archive_url":"https://api.github.com/repos/youhey/php-optional/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/youhey/php-optional/downloads","issues_url":"https://api.github.com/repos/youhey/php-optional/issues{/number}","pulls_url":"https://api.github.com/repos/youhey/php-optional/pulls{/number}","milestones_url":"https://api.github.com/repos/youhey/php-optional/milestones{/number}","notifications_url":"https://api.github.com/repos/youhey/php-optional/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/youhey/php-optional/labels{/name}","releases_url":"https://api.github.com/repos/youhey/php-optional/releases{/id}","deployments_url":"https://api.github.com/repos/youhey/php-optional/deployments","created_at":"2016-03-24T11:20:31Z","updated_at":"2016-03-24T11:29:53Z","pushed_at":"2016-03-31T11:45:14Z","git_url":"git://github.com/youhey/php-optional.git","ssh_url":"git@github.com:youhey/php-optional.git","clone_url":"https://github.com/youhey/php-optional.git","svn_url":"https://github.com/youhey/php-optional","homepage":null,"size":25,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"youhey:master","ref":"master","sha":"10e6eff47ddbc6911efcd4a63870125bddb20472","user":{"login":"youhey","id":504187,"avatar_url":"https://avatars.githubusercontent.com/u/504187?v=3","gravatar_id":"","url":"https://api.github.com/users/youhey","html_url":"https://github.com/youhey","followers_url":"https://api.github.com/users/youhey/followers","following_url":"https://api.github.com/users/youhey/following{/other_user}","gists_url":"https://api.github.com/users/youhey/gists{/gist_id}","starred_url":"https://api.github.com/users/youhey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youhey/subscriptions","organizations_url":"https://api.github.com/users/youhey/orgs","repos_url":"https://api.github.com/users/youhey/repos","events_url":"https://api.github.com/users/youhey/events{/privacy}","received_events_url":"https://api.github.com/users/youhey/received_events","type":"User","site_admin":false},"repo":{"id":54636533,"name":"php-optional","full_name":"youhey/php-optional","owner":{"login":"youhey","id":504187,"avatar_url":"https://avatars.githubusercontent.com/u/504187?v=3","gravatar_id":"","url":"https://api.github.com/users/youhey","html_url":"https://github.com/youhey","followers_url":"https://api.github.com/users/youhey/followers","following_url":"https://api.github.com/users/youhey/following{/other_user}","gists_url":"https://api.github.com/users/youhey/gists{/gist_id}","starred_url":"https://api.github.com/users/youhey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youhey/subscriptions","organizations_url":"https://api.github.com/users/youhey/orgs","repos_url":"https://api.github.com/users/youhey/repos","events_url":"https://api.github.com/users/youhey/events{/privacy}","received_events_url":"https://api.github.com/users/youhey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/youhey/php-optional","description":"java.util.Optional like a PHP container object","fork":false,"url":"https://api.github.com/repos/youhey/php-optional","forks_url":"https://api.github.com/repos/youhey/php-optional/forks","keys_url":"https://api.github.com/repos/youhey/php-optional/keys{/key_id}","collaborators_url":"https://api.github.com/repos/youhey/php-optional/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/youhey/php-optional/teams","hooks_url":"https://api.github.com/repos/youhey/php-optional/hooks","issue_events_url":"https://api.github.com/repos/youhey/php-optional/issues/events{/number}","events_url":"https://api.github.com/repos/youhey/php-optional/events","assignees_url":"https://api.github.com/repos/youhey/php-optional/assignees{/user}","branches_url":"https://api.github.com/repos/youhey/php-optional/branches{/branch}","tags_url":"https://api.github.com/repos/youhey/php-optional/tags","blobs_url":"https://api.github.com/repos/youhey/php-optional/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/youhey/php-optional/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/youhey/php-optional/git/refs{/sha}","trees_url":"https://api.github.com/repos/youhey/php-optional/git/trees{/sha}","statuses_url":"https://api.github.com/repos/youhey/php-optional/statuses/{sha}","languages_url":"https://api.github.com/repos/youhey/php-optional/languages","stargazers_url":"https://api.github.com/repos/youhey/php-optional/stargazers","contributors_url":"https://api.github.com/repos/youhey/php-optional/contributors","subscribers_url":"https://api.github.com/repos/youhey/php-optional/subscribers","subscription_url":"https://api.github.com/repos/youhey/php-optional/subscription","commits_url":"https://api.github.com/repos/youhey/php-optional/commits{/sha}","git_commits_url":"https://api.github.com/repos/youhey/php-optional/git/commits{/sha}","comments_url":"https://api.github.com/repos/youhey/php-optional/comments{/number}","issue_comment_url":"https://api.github.com/repos/youhey/php-optional/issues/comments{/number}","contents_url":"https://api.github.com/repos/youhey/php-optional/contents/{+path}","compare_url":"https://api.github.com/repos/youhey/php-optional/compare/{base}...{head}","merges_url":"https://api.github.com/repos/youhey/php-optional/merges","archive_url":"https://api.github.com/repos/youhey/php-optional/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/youhey/php-optional/downloads","issues_url":"https://api.github.com/repos/youhey/php-optional/issues{/number}","pulls_url":"https://api.github.com/repos/youhey/php-optional/pulls{/number}","milestones_url":"https://api.github.com/repos/youhey/php-optional/milestones{/number}","notifications_url":"https://api.github.com/repos/youhey/php-optional/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/youhey/php-optional/labels{/name}","releases_url":"https://api.github.com/repos/youhey/php-optional/releases{/id}","deployments_url":"https://api.github.com/repos/youhey/php-optional/deployments","created_at":"2016-03-24T11:20:31Z","updated_at":"2016-03-24T11:29:53Z","pushed_at":"2016-03-31T11:45:14Z","git_url":"git://github.com/youhey/php-optional.git","ssh_url":"git@github.com:youhey/php-optional.git","clone_url":"https://github.com/youhey/php-optional.git","svn_url":"https://github.com/youhey/php-optional","homepage":null,"size":25,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/youhey/php-optional/pulls/1"},"html":{"href":"https://github.com/youhey/php-optional/pull/1"},"issue":{"href":"https://api.github.com/repos/youhey/php-optional/issues/1"},"comments":{"href":"https://api.github.com/repos/youhey/php-optional/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/youhey/php-optional/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/youhey/php-optional/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/youhey/php-optional/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/youhey/php-optional/statuses/dc1afe4fbfa8e4c72035d552227e94a9adebd084"}}}}