{"action":"opened","issue":{"url":"https://api.github.com/repos/padraic/mockery/issues/609","repository_url":"https://api.github.com/repos/padraic/mockery","labels_url":"https://api.github.com/repos/padraic/mockery/issues/609/labels{/name}","comments_url":"https://api.github.com/repos/padraic/mockery/issues/609/comments","events_url":"https://api.github.com/repos/padraic/mockery/issues/609/events","html_url":"https://github.com/padraic/mockery/issues/609","id":162696486,"number":609,"title":"Mock not implementing interface if declared twice with different case","user":{"login":"marcosh","id":2643972,"avatar_url":"https://avatars.githubusercontent.com/u/2643972?v=3","gravatar_id":"","url":"https://api.github.com/users/marcosh","html_url":"https://github.com/marcosh","followers_url":"https://api.github.com/users/marcosh/followers","following_url":"https://api.github.com/users/marcosh/following{/other_user}","gists_url":"https://api.github.com/users/marcosh/gists{/gist_id}","starred_url":"https://api.github.com/users/marcosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcosh/subscriptions","organizations_url":"https://api.github.com/users/marcosh/orgs","repos_url":"https://api.github.com/users/marcosh/repos","events_url":"https://api.github.com/users/marcosh/events{/privacy}","received_events_url":"https://api.github.com/users/marcosh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-28T14:14:40Z","updated_at":"2016-06-28T14:14:40Z","closed_at":null,"body":"I have a test class like the following\r\n\r\n```\r\nuse Mockery as M;\r\n\r\nclass MyTest extends \\PHPUnit_Framework_TestCase\r\n{\r\n    public function setUp()\r\n    {\r\n        $em = M::mock('Doctrine\\ORM\\EntityManager');\r\n\r\n        var_dump($em instanceof \\Doctrine\\ORM\\EntityManagerInterface); //returns true\r\n    }\r\n\r\n    // some tests\r\n}\r\n```\r\n\r\nIf I add another similar mocking declaration (notice the change in the case), the `var_dump` returns `false`\r\n\r\n```\r\nuse Mockery as M;\r\n\r\nclass MyTest extends \\PHPUnit_Framework_TestCase\r\n{\r\n    public function setUp()\r\n    {\r\n        $em = M::mock('Doctrine\\Orm\\EntityManager');\r\n        $em = M::mock('Doctrine\\ORM\\EntityManager');\r\n\r\n        var_dump($em instanceof \\Doctrine\\ORM\\EntityManagerInterface); // returns false\r\n    }\r\n\r\n    // some tests\r\n}\r\n```\r\n\r\nThis happens also if the two mocks are declared in two different classes. I put them together just for simplicity.\r\n\r\nI am using version `0.9.4`"}}
{"actor":{"display_login":"marcosh"}}