{"action":"created","comment":{"url":"https://api.github.com/repos/ovr/phpsa/pulls/comments/79303259","id":79303259,"diff_hunk":"@@ -0,0 +1,67 @@\n+<?php\n+\n+namespace PHPSA\\Analyzer\\Pass\\Statement;\n+\n+use PhpParser\\Node\\Stmt\\ClassMethod;\n+use PHPSA\\Analyzer\\Pass\\AnalyzerPassInterface;\n+use PHPSA\\Analyzer\\Pass\\ConfigurablePassInterface;\n+use PHPSA\\Context;\n+use Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\n+use phpDocumentor\\Reflection\\DocBlock;\n+\n+class TestAnnotation implements ConfigurablePassInterface, AnalyzerPassInterface\n+{\n+    /**\n+     * @param ClassMethod $methodStmt\n+     * @param Context $context\n+     * @return bool\n+     */\n+    public function pass(ClassMethod $methodStmt, Context $context)\n+    {\n+        $functionName = $methodStmt->name;\n+        if (!$functionName) {\n+            return false;\n+        }\n+\n+        if (substr($functionName, 0, 4) !== \"test\") {","path":"src/Analyzer/Pass/Statement/TestAnnotation.php","position":26,"original_position":26,"commit_id":"46afbd3617fbbe816d937457a2ae411bedc7522e","original_commit_id":"46afbd3617fbbe816d937457a2ae411bedc7522e","user":{"login":"ovr","id":572096,"avatar_url":"https://avatars.githubusercontent.com/u/572096?v=3","gravatar_id":"","url":"https://api.github.com/users/ovr","html_url":"https://github.com/ovr","followers_url":"https://api.github.com/users/ovr/followers","following_url":"https://api.github.com/users/ovr/following{/other_user}","gists_url":"https://api.github.com/users/ovr/gists{/gist_id}","starred_url":"https://api.github.com/users/ovr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovr/subscriptions","organizations_url":"https://api.github.com/users/ovr/orgs","repos_url":"https://api.github.com/users/ovr/repos","events_url":"https://api.github.com/users/ovr/events{/privacy}","received_events_url":"https://api.github.com/users/ovr/received_events","type":"User","site_admin":false},"body":"`\"test\"` -> `'test'`","created_at":"2016-09-18T10:58:44Z","updated_at":"2016-09-18T10:59:04Z","html_url":"https://github.com/ovr/phpsa/pull/138#discussion_r79303259","pull_request_url":"https://api.github.com/repos/ovr/phpsa/pulls/138","_links":{"self":{"href":"https://api.github.com/repos/ovr/phpsa/pulls/comments/79303259"},"html":{"href":"https://github.com/ovr/phpsa/pull/138#discussion_r79303259"},"pull_request":{"href":"https://api.github.com/repos/ovr/phpsa/pulls/138"}}},"pull_request":{"url":"https://api.github.com/repos/ovr/phpsa/pulls/138","id":85680350,"html_url":"https://github.com/ovr/phpsa/pull/138","diff_url":"https://github.com/ovr/phpsa/pull/138.diff","patch_url":"https://github.com/ovr/phpsa/pull/138.patch","issue_url":"https://api.github.com/repos/ovr/phpsa/issues/138","number":138,"state":"open","locked":false,"title":"Add Test Annotation analyzer","user":{"login":"ddmler","id":510150,"avatar_url":"https://avatars.githubusercontent.com/u/510150?v=3","gravatar_id":"","url":"https://api.github.com/users/ddmler","html_url":"https://github.com/ddmler","followers_url":"https://api.github.com/users/ddmler/followers","following_url":"https://api.github.com/users/ddmler/following{/other_user}","gists_url":"https://api.github.com/users/ddmler/gists{/gist_id}","starred_url":"https://api.github.com/users/ddmler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddmler/subscriptions","organizations_url":"https://api.github.com/users/ddmler/orgs","repos_url":"https://api.github.com/users/ddmler/repos","events_url":"https://api.github.com/users/ddmler/events{/privacy}","received_events_url":"https://api.github.com/users/ddmler/received_events","type":"User","site_admin":false},"body":"Resolves #79 ","created_at":"2016-09-17T17:14:35Z","updated_at":"2016-09-18T10:59:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"94e8935c463961c5a50eb8fb51729fcea6c7d741","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ovr/phpsa/pulls/138/commits","review_comments_url":"https://api.github.com/repos/ovr/phpsa/pulls/138/comments","review_comment_url":"https://api.github.com/repos/ovr/phpsa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ovr/phpsa/issues/138/comments","statuses_url":"https://api.github.com/repos/ovr/phpsa/statuses/46afbd3617fbbe816d937457a2ae411bedc7522e","head":{"label":"ddmler:test-annotation-analyzer","ref":"test-annotation-analyzer","sha":"46afbd3617fbbe816d937457a2ae411bedc7522e","user":{"login":"ddmler","id":510150,"avatar_url":"https://avatars.githubusercontent.com/u/510150?v=3","gravatar_id":"","url":"https://api.github.com/users/ddmler","html_url":"https://github.com/ddmler","followers_url":"https://api.github.com/users/ddmler/followers","following_url":"https://api.github.com/users/ddmler/following{/other_user}","gists_url":"https://api.github.com/users/ddmler/gists{/gist_id}","starred_url":"https://api.github.com/users/ddmler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddmler/subscriptions","organizations_url":"https://api.github.com/users/ddmler/orgs","repos_url":"https://api.github.com/users/ddmler/repos","events_url":"https://api.github.com/users/ddmler/events{/privacy}","received_events_url":"https://api.github.com/users/ddmler/received_events","type":"User","site_admin":false},"repo":{"id":59683603,"name":"phpsa","full_name":"ddmler/phpsa","owner":{"login":"ddmler","id":510150,"avatar_url":"https://avatars.githubusercontent.com/u/510150?v=3","gravatar_id":"","url":"https://api.github.com/users/ddmler","html_url":"https://github.com/ddmler","followers_url":"https://api.github.com/users/ddmler/followers","following_url":"https://api.github.com/users/ddmler/following{/other_user}","gists_url":"https://api.github.com/users/ddmler/gists{/gist_id}","starred_url":"https://api.github.com/users/ddmler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddmler/subscriptions","organizations_url":"https://api.github.com/users/ddmler/orgs","repos_url":"https://api.github.com/users/ddmler/repos","events_url":"https://api.github.com/users/ddmler/events{/privacy}","received_events_url":"https://api.github.com/users/ddmler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ddmler/phpsa","description":"Smart Analysis for PHP :bowtie::neckbeard:","fork":true,"url":"https://api.github.com/repos/ddmler/phpsa","forks_url":"https://api.github.com/repos/ddmler/phpsa/forks","keys_url":"https://api.github.com/repos/ddmler/phpsa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ddmler/phpsa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ddmler/phpsa/teams","hooks_url":"https://api.github.com/repos/ddmler/phpsa/hooks","issue_events_url":"https://api.github.com/repos/ddmler/phpsa/issues/events{/number}","events_url":"https://api.github.com/repos/ddmler/phpsa/events","assignees_url":"https://api.github.com/repos/ddmler/phpsa/assignees{/user}","branches_url":"https://api.github.com/repos/ddmler/phpsa/branches{/branch}","tags_url":"https://api.github.com/repos/ddmler/phpsa/tags","blobs_url":"https://api.github.com/repos/ddmler/phpsa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ddmler/phpsa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ddmler/phpsa/git/refs{/sha}","trees_url":"https://api.github.com/repos/ddmler/phpsa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ddmler/phpsa/statuses/{sha}","languages_url":"https://api.github.com/repos/ddmler/phpsa/languages","stargazers_url":"https://api.github.com/repos/ddmler/phpsa/stargazers","contributors_url":"https://api.github.com/repos/ddmler/phpsa/contributors","subscribers_url":"https://api.github.com/repos/ddmler/phpsa/subscribers","subscription_url":"https://api.github.com/repos/ddmler/phpsa/subscription","commits_url":"https://api.github.com/repos/ddmler/phpsa/commits{/sha}","git_commits_url":"https://api.github.com/repos/ddmler/phpsa/git/commits{/sha}","comments_url":"https://api.github.com/repos/ddmler/phpsa/comments{/number}","issue_comment_url":"https://api.github.com/repos/ddmler/phpsa/issues/comments{/number}","contents_url":"https://api.github.com/repos/ddmler/phpsa/contents/{+path}","compare_url":"https://api.github.com/repos/ddmler/phpsa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ddmler/phpsa/merges","archive_url":"https://api.github.com/repos/ddmler/phpsa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ddmler/phpsa/downloads","issues_url":"https://api.github.com/repos/ddmler/phpsa/issues{/number}","pulls_url":"https://api.github.com/repos/ddmler/phpsa/pulls{/number}","milestones_url":"https://api.github.com/repos/ddmler/phpsa/milestones{/number}","notifications_url":"https://api.github.com/repos/ddmler/phpsa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ddmler/phpsa/labels{/name}","releases_url":"https://api.github.com/repos/ddmler/phpsa/releases{/id}","deployments_url":"https://api.github.com/repos/ddmler/phpsa/deployments","created_at":"2016-05-25T17:28:28Z","updated_at":"2016-05-25T17:28:29Z","pushed_at":"2016-09-17T17:12:20Z","git_url":"git://github.com/ddmler/phpsa.git","ssh_url":"git@github.com:ddmler/phpsa.git","clone_url":"https://github.com/ddmler/phpsa.git","svn_url":"https://github.com/ddmler/phpsa","homepage":"https://phpsa.dmtry.me/","size":1111,"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":"ovr:master","ref":"master","sha":"2e4f70404cecd5ef6a413b250944abfd82e8cb54","user":{"login":"ovr","id":572096,"avatar_url":"https://avatars.githubusercontent.com/u/572096?v=3","gravatar_id":"","url":"https://api.github.com/users/ovr","html_url":"https://github.com/ovr","followers_url":"https://api.github.com/users/ovr/followers","following_url":"https://api.github.com/users/ovr/following{/other_user}","gists_url":"https://api.github.com/users/ovr/gists{/gist_id}","starred_url":"https://api.github.com/users/ovr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovr/subscriptions","organizations_url":"https://api.github.com/users/ovr/orgs","repos_url":"https://api.github.com/users/ovr/repos","events_url":"https://api.github.com/users/ovr/events{/privacy}","received_events_url":"https://api.github.com/users/ovr/received_events","type":"User","site_admin":false},"repo":{"id":37760247,"name":"phpsa","full_name":"ovr/phpsa","owner":{"login":"ovr","id":572096,"avatar_url":"https://avatars.githubusercontent.com/u/572096?v=3","gravatar_id":"","url":"https://api.github.com/users/ovr","html_url":"https://github.com/ovr","followers_url":"https://api.github.com/users/ovr/followers","following_url":"https://api.github.com/users/ovr/following{/other_user}","gists_url":"https://api.github.com/users/ovr/gists{/gist_id}","starred_url":"https://api.github.com/users/ovr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovr/subscriptions","organizations_url":"https://api.github.com/users/ovr/orgs","repos_url":"https://api.github.com/users/ovr/repos","events_url":"https://api.github.com/users/ovr/events{/privacy}","received_events_url":"https://api.github.com/users/ovr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ovr/phpsa","description":"Smart Analysis for PHP :bowtie::neckbeard:","fork":false,"url":"https://api.github.com/repos/ovr/phpsa","forks_url":"https://api.github.com/repos/ovr/phpsa/forks","keys_url":"https://api.github.com/repos/ovr/phpsa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ovr/phpsa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ovr/phpsa/teams","hooks_url":"https://api.github.com/repos/ovr/phpsa/hooks","issue_events_url":"https://api.github.com/repos/ovr/phpsa/issues/events{/number}","events_url":"https://api.github.com/repos/ovr/phpsa/events","assignees_url":"https://api.github.com/repos/ovr/phpsa/assignees{/user}","branches_url":"https://api.github.com/repos/ovr/phpsa/branches{/branch}","tags_url":"https://api.github.com/repos/ovr/phpsa/tags","blobs_url":"https://api.github.com/repos/ovr/phpsa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ovr/phpsa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ovr/phpsa/git/refs{/sha}","trees_url":"https://api.github.com/repos/ovr/phpsa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ovr/phpsa/statuses/{sha}","languages_url":"https://api.github.com/repos/ovr/phpsa/languages","stargazers_url":"https://api.github.com/repos/ovr/phpsa/stargazers","contributors_url":"https://api.github.com/repos/ovr/phpsa/contributors","subscribers_url":"https://api.github.com/repos/ovr/phpsa/subscribers","subscription_url":"https://api.github.com/repos/ovr/phpsa/subscription","commits_url":"https://api.github.com/repos/ovr/phpsa/commits{/sha}","git_commits_url":"https://api.github.com/repos/ovr/phpsa/git/commits{/sha}","comments_url":"https://api.github.com/repos/ovr/phpsa/comments{/number}","issue_comment_url":"https://api.github.com/repos/ovr/phpsa/issues/comments{/number}","contents_url":"https://api.github.com/repos/ovr/phpsa/contents/{+path}","compare_url":"https://api.github.com/repos/ovr/phpsa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ovr/phpsa/merges","archive_url":"https://api.github.com/repos/ovr/phpsa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ovr/phpsa/downloads","issues_url":"https://api.github.com/repos/ovr/phpsa/issues{/number}","pulls_url":"https://api.github.com/repos/ovr/phpsa/pulls{/number}","milestones_url":"https://api.github.com/repos/ovr/phpsa/milestones{/number}","notifications_url":"https://api.github.com/repos/ovr/phpsa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ovr/phpsa/labels{/name}","releases_url":"https://api.github.com/repos/ovr/phpsa/releases{/id}","deployments_url":"https://api.github.com/repos/ovr/phpsa/deployments","created_at":"2015-06-20T06:24:46Z","updated_at":"2016-09-18T01:29:39Z","pushed_at":"2016-09-18T10:45:53Z","git_url":"git://github.com/ovr/phpsa.git","ssh_url":"git@github.com:ovr/phpsa.git","clone_url":"https://github.com/ovr/phpsa.git","svn_url":"https://github.com/ovr/phpsa","homepage":"https://phpsa.dmtry.me/","size":1211,"stargazers_count":498,"watchers_count":498,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":62,"forks":16,"open_issues":62,"watchers":498,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ovr/phpsa/pulls/138"},"html":{"href":"https://github.com/ovr/phpsa/pull/138"},"issue":{"href":"https://api.github.com/repos/ovr/phpsa/issues/138"},"comments":{"href":"https://api.github.com/repos/ovr/phpsa/issues/138/comments"},"review_comments":{"href":"https://api.github.com/repos/ovr/phpsa/pulls/138/comments"},"review_comment":{"href":"https://api.github.com/repos/ovr/phpsa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ovr/phpsa/pulls/138/commits"},"statuses":{"href":"https://api.github.com/repos/ovr/phpsa/statuses/46afbd3617fbbe816d937457a2ae411bedc7522e"}}}}
{"actor":{"display_login":"ovr"}}