{"action":"closed","issue":{"url":"https://api.github.com/repos/sebastianbergmann/global-state/issues/5","labels_url":"https://api.github.com/repos/sebastianbergmann/global-state/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/sebastianbergmann/global-state/issues/5/comments","events_url":"https://api.github.com/repos/sebastianbergmann/global-state/issues/5/events","html_url":"https://github.com/sebastianbergmann/global-state/issues/5","id":110861101,"number":5,"title":"1.1.0 destroys globals after the first test method in PHPUnit","user":{"login":"mrclay","id":170687,"avatar_url":"https://avatars.githubusercontent.com/u/170687?v=3","gravatar_id":"","url":"https://api.github.com/users/mrclay","html_url":"https://github.com/mrclay","followers_url":"https://api.github.com/users/mrclay/followers","following_url":"https://api.github.com/users/mrclay/following{/other_user}","gists_url":"https://api.github.com/users/mrclay/gists{/gist_id}","starred_url":"https://api.github.com/users/mrclay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrclay/subscriptions","organizations_url":"https://api.github.com/users/mrclay/orgs","repos_url":"https://api.github.com/users/mrclay/repos","events_url":"https://api.github.com/users/mrclay/events{/privacy}","received_events_url":"https://api.github.com/users/mrclay/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sebastianbergmann/global-state/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-11T14:54:53Z","updated_at":"2015-10-12T03:26:54Z","closed_at":"2015-10-12T03:26:54Z","body":"Our bootstrap sets a couple global `stdClass` vars and we use the default options in [our config](https://github.com/Elgg/Elgg/blob/2.0/phpunit.xml). After a recent composer update I noticed these globals get removed after the first test method in the suite, leading to `Creating default object from empty value` warnings when we write to them.\r\n\r\nForcing composer to use the \"1.0\" global-state fixes this problem."}}