{"action":"created","comment":{"url":"https://api.github.com/repos/hippyvm/hippyvm/pulls/comments/36879063","id":36879063,"diff_hunk":"@@ -131,6 +131,79 @@ class C: x = 2\n         ''')\n         assert php_space.int_w(output[0]) == 2\n \n+    def test_php_sees_outer_py_class002(self, php_space):\n+        output = self.run('''\n+            class C {\n+                function __construct() {\n+                    $this->x = 3; // should not pick up this class\n+                }","path":"testing/test_pypy_bridge_scope.py","position":18,"original_position":18,"commit_id":"686a0d340550050fe39a31ef096e0daac95c73a0","original_commit_id":"686a0d340550050fe39a31ef096e0daac95c73a0","user":{"login":"ltratt","id":20318,"avatar_url":"https://avatars.githubusercontent.com/u/20318?v=3","gravatar_id":"","url":"https://api.github.com/users/ltratt","html_url":"https://github.com/ltratt","followers_url":"https://api.github.com/users/ltratt/followers","following_url":"https://api.github.com/users/ltratt/following{/other_user}","gists_url":"https://api.github.com/users/ltratt/gists{/gist_id}","starred_url":"https://api.github.com/users/ltratt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltratt/subscriptions","organizations_url":"https://api.github.com/users/ltratt/orgs","repos_url":"https://api.github.com/users/ltratt/repos","events_url":"https://api.github.com/users/ltratt/events{/privacy}","received_events_url":"https://api.github.com/users/ltratt/received_events","type":"User","site_admin":false},"body":"I don't understand why the comment is on this line. Isn't the point that this whole class isn't picked up?","created_at":"2015-08-12T16:12:00Z","updated_at":"2015-08-12T16:12:00Z","html_url":"https://github.com/hippyvm/hippyvm/pull/95#discussion_r36879063","pull_request_url":"https://api.github.com/repos/hippyvm/hippyvm/pulls/95","_links":{"self":{"href":"https://api.github.com/repos/hippyvm/hippyvm/pulls/comments/36879063"},"html":{"href":"https://github.com/hippyvm/hippyvm/pull/95#discussion_r36879063"},"pull_request":{"href":"https://api.github.com/repos/hippyvm/hippyvm/pulls/95"}}},"pull_request":{"url":"https://api.github.com/repos/hippyvm/hippyvm/pulls/95","id":42246890,"html_url":"https://github.com/hippyvm/hippyvm/pull/95","diff_url":"https://github.com/hippyvm/hippyvm/pull/95.diff","patch_url":"https://github.com/hippyvm/hippyvm/pull/95.patch","issue_url":"https://api.github.com/repos/hippyvm/hippyvm/issues/95","number":95,"state":"open","locked":false,"title":"More tests to cover cross-language class lookups.","user":{"login":"vext01","id":604955,"avatar_url":"https://avatars.githubusercontent.com/u/604955?v=3","gravatar_id":"","url":"https://api.github.com/users/vext01","html_url":"https://github.com/vext01","followers_url":"https://api.github.com/users/vext01/followers","following_url":"https://api.github.com/users/vext01/following{/other_user}","gists_url":"https://api.github.com/users/vext01/gists{/gist_id}","starred_url":"https://api.github.com/users/vext01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vext01/subscriptions","organizations_url":"https://api.github.com/users/vext01/orgs","repos_url":"https://api.github.com/users/vext01/repos","events_url":"https://api.github.com/users/vext01/events{/privacy}","received_events_url":"https://api.github.com/users/vext01/received_events","type":"User","site_admin":false},"body":"Looks OK?","created_at":"2015-08-12T14:37:52Z","updated_at":"2015-08-12T16:12:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8d5f45101b6c130ff570acf9d2ebe67cb7b5f34","assignee":{"login":"ltratt","id":20318,"avatar_url":"https://avatars.githubusercontent.com/u/20318?v=3","gravatar_id":"","url":"https://api.github.com/users/ltratt","html_url":"https://github.com/ltratt","followers_url":"https://api.github.com/users/ltratt/followers","following_url":"https://api.github.com/users/ltratt/following{/other_user}","gists_url":"https://api.github.com/users/ltratt/gists{/gist_id}","starred_url":"https://api.github.com/users/ltratt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltratt/subscriptions","organizations_url":"https://api.github.com/users/ltratt/orgs","repos_url":"https://api.github.com/users/ltratt/repos","events_url":"https://api.github.com/users/ltratt/events{/privacy}","received_events_url":"https://api.github.com/users/ltratt/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/hippyvm/hippyvm/pulls/95/commits","review_comments_url":"https://api.github.com/repos/hippyvm/hippyvm/pulls/95/comments","review_comment_url":"https://api.github.com/repos/hippyvm/hippyvm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hippyvm/hippyvm/issues/95/comments","statuses_url":"https://api.github.com/repos/hippyvm/hippyvm/statuses/686a0d340550050fe39a31ef096e0daac95c73a0","head":{"label":"hippyvm:pypy_bridge_more_lookup_class_tests","ref":"pypy_bridge_more_lookup_class_tests","sha":"686a0d340550050fe39a31ef096e0daac95c73a0","user":{"login":"hippyvm","id":7037799,"avatar_url":"https://avatars.githubusercontent.com/u/7037799?v=3","gravatar_id":"","url":"https://api.github.com/users/hippyvm","html_url":"https://github.com/hippyvm","followers_url":"https://api.github.com/users/hippyvm/followers","following_url":"https://api.github.com/users/hippyvm/following{/other_user}","gists_url":"https://api.github.com/users/hippyvm/gists{/gist_id}","starred_url":"https://api.github.com/users/hippyvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hippyvm/subscriptions","organizations_url":"https://api.github.com/users/hippyvm/orgs","repos_url":"https://api.github.com/users/hippyvm/repos","events_url":"https://api.github.com/users/hippyvm/events{/privacy}","received_events_url":"https://api.github.com/users/hippyvm/received_events","type":"Organization","site_admin":false},"repo":{"id":18062903,"name":"hippyvm","full_name":"hippyvm/hippyvm","owner":{"login":"hippyvm","id":7037799,"avatar_url":"https://avatars.githubusercontent.com/u/7037799?v=3","gravatar_id":"","url":"https://api.github.com/users/hippyvm","html_url":"https://github.com/hippyvm","followers_url":"https://api.github.com/users/hippyvm/followers","following_url":"https://api.github.com/users/hippyvm/following{/other_user}","gists_url":"https://api.github.com/users/hippyvm/gists{/gist_id}","starred_url":"https://api.github.com/users/hippyvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hippyvm/subscriptions","organizations_url":"https://api.github.com/users/hippyvm/orgs","repos_url":"https://api.github.com/users/hippyvm/repos","events_url":"https://api.github.com/users/hippyvm/events{/privacy}","received_events_url":"https://api.github.com/users/hippyvm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hippyvm/hippyvm","description":"HippyVM - an implementation of the PHP language in RPython","fork":false,"url":"https://api.github.com/repos/hippyvm/hippyvm","forks_url":"https://api.github.com/repos/hippyvm/hippyvm/forks","keys_url":"https://api.github.com/repos/hippyvm/hippyvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hippyvm/hippyvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hippyvm/hippyvm/teams","hooks_url":"https://api.github.com/repos/hippyvm/hippyvm/hooks","issue_events_url":"https://api.github.com/repos/hippyvm/hippyvm/issues/events{/number}","events_url":"https://api.github.com/repos/hippyvm/hippyvm/events","assignees_url":"https://api.github.com/repos/hippyvm/hippyvm/assignees{/user}","branches_url":"https://api.github.com/repos/hippyvm/hippyvm/branches{/branch}","tags_url":"https://api.github.com/repos/hippyvm/hippyvm/tags","blobs_url":"https://api.github.com/repos/hippyvm/hippyvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hippyvm/hippyvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hippyvm/hippyvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/hippyvm/hippyvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hippyvm/hippyvm/statuses/{sha}","languages_url":"https://api.github.com/repos/hippyvm/hippyvm/languages","stargazers_url":"https://api.github.com/repos/hippyvm/hippyvm/stargazers","contributors_url":"https://api.github.com/repos/hippyvm/hippyvm/contributors","subscribers_url":"https://api.github.com/repos/hippyvm/hippyvm/subscribers","subscription_url":"https://api.github.com/repos/hippyvm/hippyvm/subscription","commits_url":"https://api.github.com/repos/hippyvm/hippyvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/hippyvm/hippyvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/hippyvm/hippyvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/hippyvm/hippyvm/issues/comments{/number}","contents_url":"https://api.github.com/repos/hippyvm/hippyvm/contents/{+path}","compare_url":"https://api.github.com/repos/hippyvm/hippyvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hippyvm/hippyvm/merges","archive_url":"https://api.github.com/repos/hippyvm/hippyvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hippyvm/hippyvm/downloads","issues_url":"https://api.github.com/repos/hippyvm/hippyvm/issues{/number}","pulls_url":"https://api.github.com/repos/hippyvm/hippyvm/pulls{/number}","milestones_url":"https://api.github.com/repos/hippyvm/hippyvm/milestones{/number}","notifications_url":"https://api.github.com/repos/hippyvm/hippyvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hippyvm/hippyvm/labels{/name}","releases_url":"https://api.github.com/repos/hippyvm/hippyvm/releases{/id}","created_at":"2014-03-24T13:10:37Z","updated_at":"2015-08-10T18:40:46Z","pushed_at":"2015-08-12T14:37:52Z","git_url":"git://github.com/hippyvm/hippyvm.git","ssh_url":"git@github.com:hippyvm/hippyvm.git","clone_url":"https://github.com/hippyvm/hippyvm.git","svn_url":"https://github.com/hippyvm/hippyvm","homepage":"http://hippyvm.com/","size":12182,"stargazers_count":821,"watchers_count":821,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":22,"forks":48,"open_issues":22,"watchers":821,"default_branch":"master"}},"base":{"label":"hippyvm:pypy_bridge","ref":"pypy_bridge","sha":"97b8b2b6efee59681b03df5f2b7fbf1320aded48","user":{"login":"hippyvm","id":7037799,"avatar_url":"https://avatars.githubusercontent.com/u/7037799?v=3","gravatar_id":"","url":"https://api.github.com/users/hippyvm","html_url":"https://github.com/hippyvm","followers_url":"https://api.github.com/users/hippyvm/followers","following_url":"https://api.github.com/users/hippyvm/following{/other_user}","gists_url":"https://api.github.com/users/hippyvm/gists{/gist_id}","starred_url":"https://api.github.com/users/hippyvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hippyvm/subscriptions","organizations_url":"https://api.github.com/users/hippyvm/orgs","repos_url":"https://api.github.com/users/hippyvm/repos","events_url":"https://api.github.com/users/hippyvm/events{/privacy}","received_events_url":"https://api.github.com/users/hippyvm/received_events","type":"Organization","site_admin":false},"repo":{"id":18062903,"name":"hippyvm","full_name":"hippyvm/hippyvm","owner":{"login":"hippyvm","id":7037799,"avatar_url":"https://avatars.githubusercontent.com/u/7037799?v=3","gravatar_id":"","url":"https://api.github.com/users/hippyvm","html_url":"https://github.com/hippyvm","followers_url":"https://api.github.com/users/hippyvm/followers","following_url":"https://api.github.com/users/hippyvm/following{/other_user}","gists_url":"https://api.github.com/users/hippyvm/gists{/gist_id}","starred_url":"https://api.github.com/users/hippyvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hippyvm/subscriptions","organizations_url":"https://api.github.com/users/hippyvm/orgs","repos_url":"https://api.github.com/users/hippyvm/repos","events_url":"https://api.github.com/users/hippyvm/events{/privacy}","received_events_url":"https://api.github.com/users/hippyvm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hippyvm/hippyvm","description":"HippyVM - an implementation of the PHP language in RPython","fork":false,"url":"https://api.github.com/repos/hippyvm/hippyvm","forks_url":"https://api.github.com/repos/hippyvm/hippyvm/forks","keys_url":"https://api.github.com/repos/hippyvm/hippyvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hippyvm/hippyvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hippyvm/hippyvm/teams","hooks_url":"https://api.github.com/repos/hippyvm/hippyvm/hooks","issue_events_url":"https://api.github.com/repos/hippyvm/hippyvm/issues/events{/number}","events_url":"https://api.github.com/repos/hippyvm/hippyvm/events","assignees_url":"https://api.github.com/repos/hippyvm/hippyvm/assignees{/user}","branches_url":"https://api.github.com/repos/hippyvm/hippyvm/branches{/branch}","tags_url":"https://api.github.com/repos/hippyvm/hippyvm/tags","blobs_url":"https://api.github.com/repos/hippyvm/hippyvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hippyvm/hippyvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hippyvm/hippyvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/hippyvm/hippyvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hippyvm/hippyvm/statuses/{sha}","languages_url":"https://api.github.com/repos/hippyvm/hippyvm/languages","stargazers_url":"https://api.github.com/repos/hippyvm/hippyvm/stargazers","contributors_url":"https://api.github.com/repos/hippyvm/hippyvm/contributors","subscribers_url":"https://api.github.com/repos/hippyvm/hippyvm/subscribers","subscription_url":"https://api.github.com/repos/hippyvm/hippyvm/subscription","commits_url":"https://api.github.com/repos/hippyvm/hippyvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/hippyvm/hippyvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/hippyvm/hippyvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/hippyvm/hippyvm/issues/comments{/number}","contents_url":"https://api.github.com/repos/hippyvm/hippyvm/contents/{+path}","compare_url":"https://api.github.com/repos/hippyvm/hippyvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hippyvm/hippyvm/merges","archive_url":"https://api.github.com/repos/hippyvm/hippyvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hippyvm/hippyvm/downloads","issues_url":"https://api.github.com/repos/hippyvm/hippyvm/issues{/number}","pulls_url":"https://api.github.com/repos/hippyvm/hippyvm/pulls{/number}","milestones_url":"https://api.github.com/repos/hippyvm/hippyvm/milestones{/number}","notifications_url":"https://api.github.com/repos/hippyvm/hippyvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hippyvm/hippyvm/labels{/name}","releases_url":"https://api.github.com/repos/hippyvm/hippyvm/releases{/id}","created_at":"2014-03-24T13:10:37Z","updated_at":"2015-08-10T18:40:46Z","pushed_at":"2015-08-12T14:37:52Z","git_url":"git://github.com/hippyvm/hippyvm.git","ssh_url":"git@github.com:hippyvm/hippyvm.git","clone_url":"https://github.com/hippyvm/hippyvm.git","svn_url":"https://github.com/hippyvm/hippyvm","homepage":"http://hippyvm.com/","size":12182,"stargazers_count":821,"watchers_count":821,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":22,"forks":48,"open_issues":22,"watchers":821,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hippyvm/hippyvm/pulls/95"},"html":{"href":"https://github.com/hippyvm/hippyvm/pull/95"},"issue":{"href":"https://api.github.com/repos/hippyvm/hippyvm/issues/95"},"comments":{"href":"https://api.github.com/repos/hippyvm/hippyvm/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/hippyvm/hippyvm/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/hippyvm/hippyvm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hippyvm/hippyvm/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/hippyvm/hippyvm/statuses/686a0d340550050fe39a31ef096e0daac95c73a0"}}}}