{"action":"closed","number":263,"pull_request":{"url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/pulls/263","id":47652900,"html_url":"https://github.com/sebastianbergmann/phpunit-mock-objects/pull/263","diff_url":"https://github.com/sebastianbergmann/phpunit-mock-objects/pull/263.diff","patch_url":"https://github.com/sebastianbergmann/phpunit-mock-objects/pull/263.patch","issue_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/issues/263","number":263,"state":"closed","locked":false,"title":"toString() throwing an exception because returning null","user":{"login":"danez","id":231804,"avatar_url":"https://avatars.githubusercontent.com/u/231804?v=3","gravatar_id":"","url":"https://api.github.com/users/danez","html_url":"https://github.com/danez","followers_url":"https://api.github.com/users/danez/followers","following_url":"https://api.github.com/users/danez/following{/other_user}","gists_url":"https://api.github.com/users/danez/gists{/gist_id}","starred_url":"https://api.github.com/users/danez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danez/subscriptions","organizations_url":"https://api.github.com/users/danez/orgs","repos_url":"https://api.github.com/users/danez/repos","events_url":"https://api.github.com/users/danez/events{/privacy}","received_events_url":"https://api.github.com/users/danez/received_events","type":"User","site_admin":false},"body":"I added a test that reproduces the problem with mocking of objects with toString() as described in #262 ","created_at":"2015-10-14T12:34:35Z","updated_at":"2015-10-14T13:05:20Z","closed_at":"2015-10-14T13:05:20Z","merged_at":"2015-10-14T13:05:20Z","merge_commit_sha":"102f24dbc2169fe3fc251f44be93d3a0a3b0811c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/pulls/263/commits","review_comments_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/pulls/263/comments","review_comment_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/issues/263/comments","statuses_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/statuses/cf6796c93d3fa1bbd6aa62a5053a2f28f6d679f3","head":{"label":"danez:tostring-throws","ref":"tostring-throws","sha":"cf6796c93d3fa1bbd6aa62a5053a2f28f6d679f3","user":{"login":"danez","id":231804,"avatar_url":"https://avatars.githubusercontent.com/u/231804?v=3","gravatar_id":"","url":"https://api.github.com/users/danez","html_url":"https://github.com/danez","followers_url":"https://api.github.com/users/danez/followers","following_url":"https://api.github.com/users/danez/following{/other_user}","gists_url":"https://api.github.com/users/danez/gists{/gist_id}","starred_url":"https://api.github.com/users/danez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danez/subscriptions","organizations_url":"https://api.github.com/users/danez/orgs","repos_url":"https://api.github.com/users/danez/repos","events_url":"https://api.github.com/users/danez/events{/privacy}","received_events_url":"https://api.github.com/users/danez/received_events","type":"User","site_admin":false},"repo":{"id":44245510,"name":"phpunit-mock-objects","full_name":"danez/phpunit-mock-objects","owner":{"login":"danez","id":231804,"avatar_url":"https://avatars.githubusercontent.com/u/231804?v=3","gravatar_id":"","url":"https://api.github.com/users/danez","html_url":"https://github.com/danez","followers_url":"https://api.github.com/users/danez/followers","following_url":"https://api.github.com/users/danez/following{/other_user}","gists_url":"https://api.github.com/users/danez/gists{/gist_id}","starred_url":"https://api.github.com/users/danez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danez/subscriptions","organizations_url":"https://api.github.com/users/danez/orgs","repos_url":"https://api.github.com/users/danez/repos","events_url":"https://api.github.com/users/danez/events{/privacy}","received_events_url":"https://api.github.com/users/danez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danez/phpunit-mock-objects","description":"Mock Object library for PHPUnit","fork":true,"url":"https://api.github.com/repos/danez/phpunit-mock-objects","forks_url":"https://api.github.com/repos/danez/phpunit-mock-objects/forks","keys_url":"https://api.github.com/repos/danez/phpunit-mock-objects/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danez/phpunit-mock-objects/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danez/phpunit-mock-objects/teams","hooks_url":"https://api.github.com/repos/danez/phpunit-mock-objects/hooks","issue_events_url":"https://api.github.com/repos/danez/phpunit-mock-objects/issues/events{/number}","events_url":"https://api.github.com/repos/danez/phpunit-mock-objects/events","assignees_url":"https://api.github.com/repos/danez/phpunit-mock-objects/assignees{/user}","branches_url":"https://api.github.com/repos/danez/phpunit-mock-objects/branches{/branch}","tags_url":"https://api.github.com/repos/danez/phpunit-mock-objects/tags","blobs_url":"https://api.github.com/repos/danez/phpunit-mock-objects/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danez/phpunit-mock-objects/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danez/phpunit-mock-objects/git/refs{/sha}","trees_url":"https://api.github.com/repos/danez/phpunit-mock-objects/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danez/phpunit-mock-objects/statuses/{sha}","languages_url":"https://api.github.com/repos/danez/phpunit-mock-objects/languages","stargazers_url":"https://api.github.com/repos/danez/phpunit-mock-objects/stargazers","contributors_url":"https://api.github.com/repos/danez/phpunit-mock-objects/contributors","subscribers_url":"https://api.github.com/repos/danez/phpunit-mock-objects/subscribers","subscription_url":"https://api.github.com/repos/danez/phpunit-mock-objects/subscription","commits_url":"https://api.github.com/repos/danez/phpunit-mock-objects/commits{/sha}","git_commits_url":"https://api.github.com/repos/danez/phpunit-mock-objects/git/commits{/sha}","comments_url":"https://api.github.com/repos/danez/phpunit-mock-objects/comments{/number}","issue_comment_url":"https://api.github.com/repos/danez/phpunit-mock-objects/issues/comments{/number}","contents_url":"https://api.github.com/repos/danez/phpunit-mock-objects/contents/{+path}","compare_url":"https://api.github.com/repos/danez/phpunit-mock-objects/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danez/phpunit-mock-objects/merges","archive_url":"https://api.github.com/repos/danez/phpunit-mock-objects/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danez/phpunit-mock-objects/downloads","issues_url":"https://api.github.com/repos/danez/phpunit-mock-objects/issues{/number}","pulls_url":"https://api.github.com/repos/danez/phpunit-mock-objects/pulls{/number}","milestones_url":"https://api.github.com/repos/danez/phpunit-mock-objects/milestones{/number}","notifications_url":"https://api.github.com/repos/danez/phpunit-mock-objects/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danez/phpunit-mock-objects/labels{/name}","releases_url":"https://api.github.com/repos/danez/phpunit-mock-objects/releases{/id}","created_at":"2015-10-14T12:16:17Z","updated_at":"2015-10-14T12:16:18Z","pushed_at":"2015-10-14T12:32:57Z","git_url":"git://github.com/danez/phpunit-mock-objects.git","ssh_url":"git@github.com:danez/phpunit-mock-objects.git","clone_url":"https://github.com/danez/phpunit-mock-objects.git","svn_url":"https://github.com/danez/phpunit-mock-objects","homepage":"https://phpunit.de/","size":2400,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"sebastianbergmann:master","ref":"master","sha":"28fffaf4c2b72812b3975a029c1a3d920cf5ea01","user":{"login":"sebastianbergmann","id":25218,"avatar_url":"https://avatars.githubusercontent.com/u/25218?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastianbergmann","html_url":"https://github.com/sebastianbergmann","followers_url":"https://api.github.com/users/sebastianbergmann/followers","following_url":"https://api.github.com/users/sebastianbergmann/following{/other_user}","gists_url":"https://api.github.com/users/sebastianbergmann/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianbergmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianbergmann/subscriptions","organizations_url":"https://api.github.com/users/sebastianbergmann/orgs","repos_url":"https://api.github.com/users/sebastianbergmann/repos","events_url":"https://api.github.com/users/sebastianbergmann/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianbergmann/received_events","type":"User","site_admin":false},"repo":{"id":637935,"name":"phpunit-mock-objects","full_name":"sebastianbergmann/phpunit-mock-objects","owner":{"login":"sebastianbergmann","id":25218,"avatar_url":"https://avatars.githubusercontent.com/u/25218?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastianbergmann","html_url":"https://github.com/sebastianbergmann","followers_url":"https://api.github.com/users/sebastianbergmann/followers","following_url":"https://api.github.com/users/sebastianbergmann/following{/other_user}","gists_url":"https://api.github.com/users/sebastianbergmann/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianbergmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianbergmann/subscriptions","organizations_url":"https://api.github.com/users/sebastianbergmann/orgs","repos_url":"https://api.github.com/users/sebastianbergmann/repos","events_url":"https://api.github.com/users/sebastianbergmann/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianbergmann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sebastianbergmann/phpunit-mock-objects","description":"Mock Object library for PHPUnit","fork":false,"url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects","forks_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/forks","keys_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/teams","hooks_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/hooks","issue_events_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/issues/events{/number}","events_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/events","assignees_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/assignees{/user}","branches_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/branches{/branch}","tags_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/tags","blobs_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/git/refs{/sha}","trees_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/statuses/{sha}","languages_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/languages","stargazers_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/stargazers","contributors_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/contributors","subscribers_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/subscribers","subscription_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/subscription","commits_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/commits{/sha}","git_commits_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/git/commits{/sha}","comments_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/comments{/number}","issue_comment_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/issues/comments{/number}","contents_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/contents/{+path}","compare_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/merges","archive_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/downloads","issues_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/issues{/number}","pulls_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/pulls{/number}","milestones_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/milestones{/number}","notifications_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/labels{/name}","releases_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/releases{/id}","created_at":"2010-04-29T10:25:12Z","updated_at":"2015-09-21T09:29:44Z","pushed_at":"2015-10-14T13:05:20Z","git_url":"git://github.com/sebastianbergmann/phpunit-mock-objects.git","ssh_url":"git@github.com:sebastianbergmann/phpunit-mock-objects.git","clone_url":"https://github.com/sebastianbergmann/phpunit-mock-objects.git","svn_url":"https://github.com/sebastianbergmann/phpunit-mock-objects","homepage":"https://phpunit.de/","size":2400,"stargazers_count":129,"watchers_count":129,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":97,"mirror_url":null,"open_issues_count":5,"forks":97,"open_issues":5,"watchers":129,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/pulls/263"},"html":{"href":"https://github.com/sebastianbergmann/phpunit-mock-objects/pull/263"},"issue":{"href":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/issues/263"},"comments":{"href":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/issues/263/comments"},"review_comments":{"href":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/pulls/263/comments"},"review_comment":{"href":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/pulls/263/commits"},"statuses":{"href":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/statuses/cf6796c93d3fa1bbd6aa62a5053a2f28f6d679f3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"sebastianbergmann","id":25218,"avatar_url":"https://avatars.githubusercontent.com/u/25218?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastianbergmann","html_url":"https://github.com/sebastianbergmann","followers_url":"https://api.github.com/users/sebastianbergmann/followers","following_url":"https://api.github.com/users/sebastianbergmann/following{/other_user}","gists_url":"https://api.github.com/users/sebastianbergmann/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianbergmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianbergmann/subscriptions","organizations_url":"https://api.github.com/users/sebastianbergmann/orgs","repos_url":"https://api.github.com/users/sebastianbergmann/repos","events_url":"https://api.github.com/users/sebastianbergmann/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianbergmann/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":15,"deletions":0,"changed_files":2}}