{"action":"created","issue":{"url":"https://api.github.com/repos/phpspec/phpspec/issues/630","labels_url":"https://api.github.com/repos/phpspec/phpspec/issues/630/labels{/name}","comments_url":"https://api.github.com/repos/phpspec/phpspec/issues/630/comments","events_url":"https://api.github.com/repos/phpspec/phpspec/issues/630/events","html_url":"https://github.com/phpspec/phpspec/issues/630","id":56523765,"number":630,"title":"Help improve isolation of specs","user":{"login":"ciaranmcnulty","id":237866,"avatar_url":"https://avatars.githubusercontent.com/u/237866?v=3","gravatar_id":"","url":"https://api.github.com/users/ciaranmcnulty","html_url":"https://github.com/ciaranmcnulty","followers_url":"https://api.github.com/users/ciaranmcnulty/followers","following_url":"https://api.github.com/users/ciaranmcnulty/following{/other_user}","gists_url":"https://api.github.com/users/ciaranmcnulty/gists{/gist_id}","starred_url":"https://api.github.com/users/ciaranmcnulty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciaranmcnulty/subscriptions","organizations_url":"https://api.github.com/users/ciaranmcnulty/orgs","repos_url":"https://api.github.com/users/ciaranmcnulty/repos","events_url":"https://api.github.com/users/ciaranmcnulty/events{/privacy}","received_events_url":"https://api.github.com/users/ciaranmcnulty/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phpspec/phpspec/labels/feature","name":"feature","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-04T13:05:07Z","updated_at":"2015-02-12T15:25:16Z","closed_at":null,"body":"PhpSpec is not designed for functional testing, so it would make sense to try and dissuade this usage. \r\n\r\nIt's hard to detect functional testing, one proxy metric might be to look at the number of objects involved in a spec using `get_declared_classes` and if it's above a certain threshold show some sort of non-failing warning.\r\n\r\ne.g. \"Warning: >100 objects were involved in this spec, it is likely to be fragile\""},"comment":{"url":"https://api.github.com/repos/phpspec/phpspec/issues/comments/74088862","html_url":"https://github.com/phpspec/phpspec/issues/630#issuecomment-74088862","issue_url":"https://api.github.com/repos/phpspec/phpspec/issues/630","id":74088862,"user":{"login":"ciaranmcnulty","id":237866,"avatar_url":"https://avatars.githubusercontent.com/u/237866?v=3","gravatar_id":"","url":"https://api.github.com/users/ciaranmcnulty","html_url":"https://github.com/ciaranmcnulty","followers_url":"https://api.github.com/users/ciaranmcnulty/followers","following_url":"https://api.github.com/users/ciaranmcnulty/following{/other_user}","gists_url":"https://api.github.com/users/ciaranmcnulty/gists{/gist_id}","starred_url":"https://api.github.com/users/ciaranmcnulty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciaranmcnulty/subscriptions","organizations_url":"https://api.github.com/users/ciaranmcnulty/orgs","repos_url":"https://api.github.com/users/ciaranmcnulty/repos","events_url":"https://api.github.com/users/ciaranmcnulty/events{/privacy}","received_events_url":"https://api.github.com/users/ciaranmcnulty/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T15:25:16Z","updated_at":"2015-02-12T15:25:16Z","body":"True, it'd throw a warning on the first spec that included too much I guess?\r\n\r\nThis may be possible with Xdebug, either counting objects involved in the call or something more complex like checking whether they're in `src`"}}