{"action":"closed","number":272,"pull_request":{"url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/pulls/272","id":50125657,"html_url":"https://github.com/sebastianbergmann/phpunit-mock-objects/pull/272","diff_url":"https://github.com/sebastianbergmann/phpunit-mock-objects/pull/272.diff","patch_url":"https://github.com/sebastianbergmann/phpunit-mock-objects/pull/272.patch","issue_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/issues/272","number":272,"state":"closed","locked":false,"title":"Fix mocking __toString() return value","user":{"login":"nicolas-grekas","id":243674,"avatar_url":"https://avatars.githubusercontent.com/u/243674?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas-grekas","html_url":"https://github.com/nicolas-grekas","followers_url":"https://api.github.com/users/nicolas-grekas/followers","following_url":"https://api.github.com/users/nicolas-grekas/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-grekas/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-grekas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-grekas/subscriptions","organizations_url":"https://api.github.com/users/nicolas-grekas/orgs","repos_url":"https://api.github.com/users/nicolas-grekas/repos","events_url":"https://api.github.com/users/nicolas-grekas/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-grekas/received_events","type":"User","site_admin":false},"body":"This regression has been introduced in 3.0.1: mocking the return value of __toString is broken and always returns the empty string. Here is a fix and a test case.\r\nTagging a new release would be great as symfony's tests are currently broken because of this.","created_at":"2015-11-09T14:05:41Z","updated_at":"2015-11-17T11:33:39Z","closed_at":"2015-11-17T11:33:39Z","merged_at":"2015-11-17T11:33:39Z","merge_commit_sha":"06c57b579e30b7f0ab9fded6fe08a0a59ccc8572","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/pulls/272/commits","review_comments_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/pulls/272/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/272/comments","statuses_url":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/statuses/b28b029356e65091dfbf8c2bc4ef106ffece509e","head":{"label":"nicolas-grekas:fix-tostr","ref":"fix-tostr","sha":"b28b029356e65091dfbf8c2bc4ef106ffece509e","user":{"login":"nicolas-grekas","id":243674,"avatar_url":"https://avatars.githubusercontent.com/u/243674?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas-grekas","html_url":"https://github.com/nicolas-grekas","followers_url":"https://api.github.com/users/nicolas-grekas/followers","following_url":"https://api.github.com/users/nicolas-grekas/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-grekas/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-grekas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-grekas/subscriptions","organizations_url":"https://api.github.com/users/nicolas-grekas/orgs","repos_url":"https://api.github.com/users/nicolas-grekas/repos","events_url":"https://api.github.com/users/nicolas-grekas/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-grekas/received_events","type":"User","site_admin":false},"repo":{"id":45802371,"name":"phpunit-mock-objects","full_name":"nicolas-grekas/phpunit-mock-objects","owner":{"login":"nicolas-grekas","id":243674,"avatar_url":"https://avatars.githubusercontent.com/u/243674?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas-grekas","html_url":"https://github.com/nicolas-grekas","followers_url":"https://api.github.com/users/nicolas-grekas/followers","following_url":"https://api.github.com/users/nicolas-grekas/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-grekas/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-grekas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-grekas/subscriptions","organizations_url":"https://api.github.com/users/nicolas-grekas/orgs","repos_url":"https://api.github.com/users/nicolas-grekas/repos","events_url":"https://api.github.com/users/nicolas-grekas/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-grekas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicolas-grekas/phpunit-mock-objects","description":"Mock Object library for PHPUnit","fork":true,"url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects","forks_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/forks","keys_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/teams","hooks_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/hooks","issue_events_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/issues/events{/number}","events_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/events","assignees_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/assignees{/user}","branches_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/branches{/branch}","tags_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/tags","blobs_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/statuses/{sha}","languages_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/languages","stargazers_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/stargazers","contributors_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/contributors","subscribers_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/subscribers","subscription_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/subscription","commits_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/contents/{+path}","compare_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/merges","archive_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/downloads","issues_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/issues{/number}","pulls_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/pulls{/number}","milestones_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/milestones{/number}","notifications_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/labels{/name}","releases_url":"https://api.github.com/repos/nicolas-grekas/phpunit-mock-objects/releases{/id}","created_at":"2015-11-08T22:38:30Z","updated_at":"2015-11-08T22:38:32Z","pushed_at":"2015-11-09T15:37:23Z","git_url":"git://github.com/nicolas-grekas/phpunit-mock-objects.git","ssh_url":"git@github.com:nicolas-grekas/phpunit-mock-objects.git","clone_url":"https://github.com/nicolas-grekas/phpunit-mock-objects.git","svn_url":"https://github.com/nicolas-grekas/phpunit-mock-objects","homepage":"https://phpunit.de/","size":2346,"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":"382c729a52b7ef682e94c73fd6868f5ee8116ba7","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-11-11T07:03:14Z","pushed_at":"2015-11-17T11:33:39Z","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":2346,"stargazers_count":131,"watchers_count":131,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":102,"mirror_url":null,"open_issues_count":11,"forks":102,"open_issues":11,"watchers":131,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/pulls/272"},"html":{"href":"https://github.com/sebastianbergmann/phpunit-mock-objects/pull/272"},"issue":{"href":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/issues/272"},"comments":{"href":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/issues/272/comments"},"review_comments":{"href":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/pulls/272/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/272/commits"},"statuses":{"href":"https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/statuses/b28b029356e65091dfbf8c2bc4ef106ffece509e"}},"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":4,"review_comments":2,"commits":1,"additions":11,"deletions":7,"changed_files":2}}