{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/11386","labels_url":"https://api.github.com/repos/laravel/framework/issues/11386/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/11386/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/11386/events","html_url":"https://github.com/laravel/framework/pull/11386","id":122721761,"number":11386,"title":"[5.2] Add a testing method to ensure events are not fired","user":{"login":"alexhouse","id":2657291,"avatar_url":"https://avatars.githubusercontent.com/u/2657291?v=3","gravatar_id":"","url":"https://api.github.com/users/alexhouse","html_url":"https://github.com/alexhouse","followers_url":"https://api.github.com/users/alexhouse/followers","following_url":"https://api.github.com/users/alexhouse/following{/other_user}","gists_url":"https://api.github.com/users/alexhouse/gists{/gist_id}","starred_url":"https://api.github.com/users/alexhouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexhouse/subscriptions","organizations_url":"https://api.github.com/users/alexhouse/orgs","repos_url":"https://api.github.com/users/alexhouse/repos","events_url":"https://api.github.com/users/alexhouse/events{/privacy}","received_events_url":"https://api.github.com/users/alexhouse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-17T11:59:45Z","updated_at":"2015-12-18T14:53:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/11386","html_url":"https://github.com/laravel/framework/pull/11386","diff_url":"https://github.com/laravel/framework/pull/11386.diff","patch_url":"https://github.com/laravel/framework/pull/11386.patch"},"body":"#11379 removing merge commit\r\n\r\n---\r\n\r\nWe've encountered a situation during our development that requires that an event is not fired during a particular execution. This addition should help with these cases.\r\n\r\nEssentially a copy of expectsEvents() above, instead we append the given events to a separate array if they are fired. Upon application close, we confirm that the fired array is empty. If it's not, the events we should not have seen were actually fired, so we throw an exception."},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/165796252","html_url":"https://github.com/laravel/framework/pull/11386#issuecomment-165796252","issue_url":"https://api.github.com/repos/laravel/framework/issues/11386","id":165796252,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T14:53:09Z","updated_at":"2015-12-18T14:53:09Z","body":"Seems like a good idea to me. I am concious of not bloating the core though."}}