{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/AspectMock/issues/72","labels_url":"https://api.github.com/repos/Codeception/AspectMock/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/AspectMock/issues/72/comments","events_url":"https://api.github.com/repos/Codeception/AspectMock/issues/72/events","html_url":"https://github.com/Codeception/AspectMock/pull/72","id":120531630,"number":72,"title":"more consistent namespace handling","user":{"login":"pwillcode","id":6126513,"avatar_url":"https://avatars.githubusercontent.com/u/6126513?v=3","gravatar_id":"","url":"https://api.github.com/users/pwillcode","html_url":"https://github.com/pwillcode","followers_url":"https://api.github.com/users/pwillcode/followers","following_url":"https://api.github.com/users/pwillcode/following{/other_user}","gists_url":"https://api.github.com/users/pwillcode/gists{/gist_id}","starred_url":"https://api.github.com/users/pwillcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwillcode/subscriptions","organizations_url":"https://api.github.com/users/pwillcode/orgs","repos_url":"https://api.github.com/users/pwillcode/repos","events_url":"https://api.github.com/users/pwillcode/events{/privacy}","received_events_url":"https://api.github.com/users/pwillcode/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-05T05:39:35Z","updated_at":"2015-12-11T08:54:52Z","closed_at":"2015-12-11T08:54:49Z","pull_request":{"url":"https://api.github.com/repos/Codeception/AspectMock/pulls/72","html_url":"https://github.com/Codeception/AspectMock/pull/72","diff_url":"https://github.com/Codeception/AspectMock/pull/72.diff","patch_url":"https://github.com/Codeception/AspectMock/pull/72.patch"},"body":"The expectation for AspectMock functions seems to be that all namespaces are specified relative to the root namespace, and so it is not necessary to fully qualify namespaces. In certain cases, however, users will naturally do so.\r\n\r\nPrevious behavior when passing a fully qualified namespace into `Test::double` or `Test::func`...\r\n`Test::double` - mocking occurs as usual, however the registry reports that no calls were ever made.\r\n`Test::func` - mocking does not properly occur.\r\n\r\nThere was already a line for stripping the leading backslash in `Mocker::registerClass` however it was not present in `Mocker::registerFunc` or either of the relevant lookup functions in `Registry`.\r\nTo fix the behavior, I propagated that cleaning line into all 4 of these locations.\r\n\r\nIt is possible that there are other places which should have this cleaning, however I have not looked through in detail."},"comment":{"url":"https://api.github.com/repos/Codeception/AspectMock/issues/comments/163878593","html_url":"https://github.com/Codeception/AspectMock/pull/72#issuecomment-163878593","issue_url":"https://api.github.com/repos/Codeception/AspectMock/issues/72","id":163878593,"user":{"login":"sergeyklay","id":1256298,"avatar_url":"https://avatars.githubusercontent.com/u/1256298?v=3","gravatar_id":"","url":"https://api.github.com/users/sergeyklay","html_url":"https://github.com/sergeyklay","followers_url":"https://api.github.com/users/sergeyklay/followers","following_url":"https://api.github.com/users/sergeyklay/following{/other_user}","gists_url":"https://api.github.com/users/sergeyklay/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeyklay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeyklay/subscriptions","organizations_url":"https://api.github.com/users/sergeyklay/orgs","repos_url":"https://api.github.com/users/sergeyklay/repos","events_url":"https://api.github.com/users/sergeyklay/events{/privacy}","received_events_url":"https://api.github.com/users/sergeyklay/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T08:54:52Z","updated_at":"2015-12-11T08:54:52Z","body":"Thanks"}}