{"action":"created","issue":{"url":"https://api.github.com/repos/phpspec/prophecy/issues/97","labels_url":"https://api.github.com/repos/phpspec/prophecy/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/phpspec/prophecy/issues/97/comments","events_url":"https://api.github.com/repos/phpspec/prophecy/issues/97/events","html_url":"https://github.com/phpspec/prophecy/pull/97","id":30425401,"number":97,"title":"Added support for bypassing a constructor, if it's final","user":{"login":"klaussilveira","id":467729,"avatar_url":"https://avatars.githubusercontent.com/u/467729?v=3","gravatar_id":"","url":"https://api.github.com/users/klaussilveira","html_url":"https://github.com/klaussilveira","followers_url":"https://api.github.com/users/klaussilveira/followers","following_url":"https://api.github.com/users/klaussilveira/following{/other_user}","gists_url":"https://api.github.com/users/klaussilveira/gists{/gist_id}","starred_url":"https://api.github.com/users/klaussilveira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klaussilveira/subscriptions","organizations_url":"https://api.github.com/users/klaussilveira/orgs","repos_url":"https://api.github.com/users/klaussilveira/repos","events_url":"https://api.github.com/users/klaussilveira/events{/privacy}","received_events_url":"https://api.github.com/users/klaussilveira/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-03-28T21:48:02Z","updated_at":"2015-12-16T13:35:04Z","closed_at":"2014-05-08T14:34:13Z","pull_request":{"url":"https://api.github.com/repos/phpspec/prophecy/pulls/97","html_url":"https://github.com/phpspec/prophecy/pull/97","diff_url":"https://github.com/phpspec/prophecy/pull/97.diff","patch_url":"https://github.com/phpspec/prophecy/pull/97.patch"},"body":"When creating a double of a class that has the constructor defined as final, we just ignore it, to avoid a fatal error about overriding a final constructor. An example of this problem occurs when double'ing Phalcon's Model classes."},"comment":{"url":"https://api.github.com/repos/phpspec/prophecy/issues/comments/165107539","html_url":"https://github.com/phpspec/prophecy/pull/97#issuecomment-165107539","issue_url":"https://api.github.com/repos/phpspec/prophecy/issues/97","id":165107539,"user":{"login":"stof","id":439401,"avatar_url":"https://avatars.githubusercontent.com/u/439401?v=3","gravatar_id":"","url":"https://api.github.com/users/stof","html_url":"https://github.com/stof","followers_url":"https://api.github.com/users/stof/followers","following_url":"https://api.github.com/users/stof/following{/other_user}","gists_url":"https://api.github.com/users/stof/gists{/gist_id}","starred_url":"https://api.github.com/users/stof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stof/subscriptions","organizations_url":"https://api.github.com/users/stof/orgs","repos_url":"https://api.github.com/users/stof/repos","events_url":"https://api.github.com/users/stof/events{/privacy}","received_events_url":"https://api.github.com/users/stof/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T13:35:04Z","updated_at":"2015-12-16T13:35:04Z","body":"@bendavies in any case, you should not be mocking Doctrine's SQLFilters class, unless this is done inside the Doctrine testsuite itself. Otherwise, it means you are testing your own code against what you *think* Doctrine does, not against what it does (the generic rule being \"don't mock what you don't own\")"}}