{"action":"created","comment":{"url":"https://api.github.com/repos/phpspec/phpspec/pulls/comments/31605682","id":31605682,"diff_hunk":"@@ -0,0 +1,48 @@\n+<?php\n+\n+/*\n+ * This file is part of PhpSpec, A php toolset to drive emergent\n+ * design by specification.\n+ *\n+ * (c) Marcello Duarte <marcello.duarte@gmail.com>\n+ * (c) Konstantin Kudryashov <ever.zet@gmail.com>\n+ *\n+ * For the full copyright and license information, please view the LICENSE\n+ * file that was distributed with this source code.\n+ */\n+\n+namespace PhpSpec\\Process\\Shutdown;\n+\n+use PhpSpec\\Formatter\\CurrentExampleWriter;\n+use PhpSpec\\Message\\MessageInterface;\n+\n+class Shutdown\n+{\n+    /**\n+     * @var Example\n+     */\n+    private $message;\n+\n+    /**\n+     * @var CurrentExampleWriter\n+     */\n+    private $currentExampleWriter;\n+\n+    public function __construct(MessageInterface $message, CurrentExampleWriter $currentExampleWriter)\n+    {\n+        $this->message = $message;\n+        $this->currentExampleWriter = $currentExampleWriter;\n+    }\n+\n+    public function registerShutdown()\n+    {\n+        ini_set('display_errors', '0');\n+        error_reporting(E_NOTICE);","path":"src/PhpSpec/Process/Shutdown/Shutdown.php","position":40,"original_position":40,"commit_id":"3f123199d9e7d70c41e6c825c12013b44742527e","original_commit_id":"3f123199d9e7d70c41e6c825c12013b44742527e","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},"body":"Why `E_NOTICE`?","created_at":"2015-06-03T09:11:24Z","updated_at":"2015-06-03T09:11:24Z","html_url":"https://github.com/phpspec/phpspec/pull/711#discussion_r31605682","pull_request_url":"https://api.github.com/repos/phpspec/phpspec/pulls/711","_links":{"self":{"href":"https://api.github.com/repos/phpspec/phpspec/pulls/comments/31605682"},"html":{"href":"https://github.com/phpspec/phpspec/pull/711#discussion_r31605682"},"pull_request":{"href":"https://api.github.com/repos/phpspec/phpspec/pulls/711"}}},"pull_request":{"url":"https://api.github.com/repos/phpspec/phpspec/pulls/711","id":36565482,"html_url":"https://github.com/phpspec/phpspec/pull/711","diff_url":"https://github.com/phpspec/phpspec/pull/711.diff","patch_url":"https://github.com/phpspec/phpspec/pull/711.patch","issue_url":"https://api.github.com/repos/phpspec/phpspec/issues/711","number":711,"state":"open","locked":false,"title":"Improve fatal error message when running specs","user":{"login":"Elfiggo","id":2065652,"avatar_url":"https://avatars.githubusercontent.com/u/2065652?v=3","gravatar_id":"","url":"https://api.github.com/users/Elfiggo","html_url":"https://github.com/Elfiggo","followers_url":"https://api.github.com/users/Elfiggo/followers","following_url":"https://api.github.com/users/Elfiggo/following{/other_user}","gists_url":"https://api.github.com/users/Elfiggo/gists{/gist_id}","starred_url":"https://api.github.com/users/Elfiggo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elfiggo/subscriptions","organizations_url":"https://api.github.com/users/Elfiggo/orgs","repos_url":"https://api.github.com/users/Elfiggo/repos","events_url":"https://api.github.com/users/Elfiggo/events{/privacy}","received_events_url":"https://api.github.com/users/Elfiggo/received_events","type":"User","site_admin":false},"body":"Helps identify the scenario where a fatal error was caused\r\n\r\nIncludes:\r\n\r\nCreation of a new Listener to record current example being executed\r\nUpon a Fatal Error happening a message is displayed identifying which example had a fatal error\r\n","created_at":"2015-05-30T13:24:32Z","updated_at":"2015-06-03T09:11:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"989cf6a7493c3295cb473c594529360f2350ebc1","assignee":null,"milestone":{"url":"https://api.github.com/repos/phpspec/phpspec/milestones/9","html_url":"https://github.com/phpspec/phpspec/milestones/2.3","labels_url":"https://api.github.com/repos/phpspec/phpspec/milestones/9/labels","id":977541,"number":9,"title":"2.3","description":null,"creator":{"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},"open_issues":7,"closed_issues":3,"state":"open","created_at":"2015-02-12T21:55:24Z","updated_at":"2015-06-02T20:51:10Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/phpspec/phpspec/pulls/711/commits","review_comments_url":"https://api.github.com/repos/phpspec/phpspec/pulls/711/comments","review_comment_url":"https://api.github.com/repos/phpspec/phpspec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phpspec/phpspec/issues/711/comments","statuses_url":"https://api.github.com/repos/phpspec/phpspec/statuses/3f123199d9e7d70c41e6c825c12013b44742527e","head":{"label":"Elfiggo:feature/improved-fatal-error-message","ref":"feature/improved-fatal-error-message","sha":"3f123199d9e7d70c41e6c825c12013b44742527e","user":{"login":"Elfiggo","id":2065652,"avatar_url":"https://avatars.githubusercontent.com/u/2065652?v=3","gravatar_id":"","url":"https://api.github.com/users/Elfiggo","html_url":"https://github.com/Elfiggo","followers_url":"https://api.github.com/users/Elfiggo/followers","following_url":"https://api.github.com/users/Elfiggo/following{/other_user}","gists_url":"https://api.github.com/users/Elfiggo/gists{/gist_id}","starred_url":"https://api.github.com/users/Elfiggo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elfiggo/subscriptions","organizations_url":"https://api.github.com/users/Elfiggo/orgs","repos_url":"https://api.github.com/users/Elfiggo/repos","events_url":"https://api.github.com/users/Elfiggo/events{/privacy}","received_events_url":"https://api.github.com/users/Elfiggo/received_events","type":"User","site_admin":false},"repo":{"id":28311009,"name":"phpspec","full_name":"Elfiggo/phpspec","owner":{"login":"Elfiggo","id":2065652,"avatar_url":"https://avatars.githubusercontent.com/u/2065652?v=3","gravatar_id":"","url":"https://api.github.com/users/Elfiggo","html_url":"https://github.com/Elfiggo","followers_url":"https://api.github.com/users/Elfiggo/followers","following_url":"https://api.github.com/users/Elfiggo/following{/other_user}","gists_url":"https://api.github.com/users/Elfiggo/gists{/gist_id}","starred_url":"https://api.github.com/users/Elfiggo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elfiggo/subscriptions","organizations_url":"https://api.github.com/users/Elfiggo/orgs","repos_url":"https://api.github.com/users/Elfiggo/repos","events_url":"https://api.github.com/users/Elfiggo/events{/privacy}","received_events_url":"https://api.github.com/users/Elfiggo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Elfiggo/phpspec","description":"SpecBDD Framework for PHP","fork":true,"url":"https://api.github.com/repos/Elfiggo/phpspec","forks_url":"https://api.github.com/repos/Elfiggo/phpspec/forks","keys_url":"https://api.github.com/repos/Elfiggo/phpspec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Elfiggo/phpspec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Elfiggo/phpspec/teams","hooks_url":"https://api.github.com/repos/Elfiggo/phpspec/hooks","issue_events_url":"https://api.github.com/repos/Elfiggo/phpspec/issues/events{/number}","events_url":"https://api.github.com/repos/Elfiggo/phpspec/events","assignees_url":"https://api.github.com/repos/Elfiggo/phpspec/assignees{/user}","branches_url":"https://api.github.com/repos/Elfiggo/phpspec/branches{/branch}","tags_url":"https://api.github.com/repos/Elfiggo/phpspec/tags","blobs_url":"https://api.github.com/repos/Elfiggo/phpspec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Elfiggo/phpspec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Elfiggo/phpspec/git/refs{/sha}","trees_url":"https://api.github.com/repos/Elfiggo/phpspec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Elfiggo/phpspec/statuses/{sha}","languages_url":"https://api.github.com/repos/Elfiggo/phpspec/languages","stargazers_url":"https://api.github.com/repos/Elfiggo/phpspec/stargazers","contributors_url":"https://api.github.com/repos/Elfiggo/phpspec/contributors","subscribers_url":"https://api.github.com/repos/Elfiggo/phpspec/subscribers","subscription_url":"https://api.github.com/repos/Elfiggo/phpspec/subscription","commits_url":"https://api.github.com/repos/Elfiggo/phpspec/commits{/sha}","git_commits_url":"https://api.github.com/repos/Elfiggo/phpspec/git/commits{/sha}","comments_url":"https://api.github.com/repos/Elfiggo/phpspec/comments{/number}","issue_comment_url":"https://api.github.com/repos/Elfiggo/phpspec/issues/comments{/number}","contents_url":"https://api.github.com/repos/Elfiggo/phpspec/contents/{+path}","compare_url":"https://api.github.com/repos/Elfiggo/phpspec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Elfiggo/phpspec/merges","archive_url":"https://api.github.com/repos/Elfiggo/phpspec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Elfiggo/phpspec/downloads","issues_url":"https://api.github.com/repos/Elfiggo/phpspec/issues{/number}","pulls_url":"https://api.github.com/repos/Elfiggo/phpspec/pulls{/number}","milestones_url":"https://api.github.com/repos/Elfiggo/phpspec/milestones{/number}","notifications_url":"https://api.github.com/repos/Elfiggo/phpspec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Elfiggo/phpspec/labels{/name}","releases_url":"https://api.github.com/repos/Elfiggo/phpspec/releases{/id}","created_at":"2014-12-21T19:52:00Z","updated_at":"2014-12-21T19:52:02Z","pushed_at":"2015-06-02T15:06:22Z","git_url":"git://github.com/Elfiggo/phpspec.git","ssh_url":"git@github.com:Elfiggo/phpspec.git","clone_url":"https://github.com/Elfiggo/phpspec.git","svn_url":"https://github.com/Elfiggo/phpspec","homepage":"http://www.phpspec.net","size":3283,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"phpspec:master","ref":"master","sha":"1f9a3443ab6c8d5a9eade80b9386c749ea9020fd","user":{"login":"phpspec","id":416702,"avatar_url":"https://avatars.githubusercontent.com/u/416702?v=3","gravatar_id":"","url":"https://api.github.com/users/phpspec","html_url":"https://github.com/phpspec","followers_url":"https://api.github.com/users/phpspec/followers","following_url":"https://api.github.com/users/phpspec/following{/other_user}","gists_url":"https://api.github.com/users/phpspec/gists{/gist_id}","starred_url":"https://api.github.com/users/phpspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpspec/subscriptions","organizations_url":"https://api.github.com/users/phpspec/orgs","repos_url":"https://api.github.com/users/phpspec/repos","events_url":"https://api.github.com/users/phpspec/events{/privacy}","received_events_url":"https://api.github.com/users/phpspec/received_events","type":"Organization","site_admin":false},"repo":{"id":1582219,"name":"phpspec","full_name":"phpspec/phpspec","owner":{"login":"phpspec","id":416702,"avatar_url":"https://avatars.githubusercontent.com/u/416702?v=3","gravatar_id":"","url":"https://api.github.com/users/phpspec","html_url":"https://github.com/phpspec","followers_url":"https://api.github.com/users/phpspec/followers","following_url":"https://api.github.com/users/phpspec/following{/other_user}","gists_url":"https://api.github.com/users/phpspec/gists{/gist_id}","starred_url":"https://api.github.com/users/phpspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpspec/subscriptions","organizations_url":"https://api.github.com/users/phpspec/orgs","repos_url":"https://api.github.com/users/phpspec/repos","events_url":"https://api.github.com/users/phpspec/events{/privacy}","received_events_url":"https://api.github.com/users/phpspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/phpspec/phpspec","description":"SpecBDD Framework for PHP","fork":false,"url":"https://api.github.com/repos/phpspec/phpspec","forks_url":"https://api.github.com/repos/phpspec/phpspec/forks","keys_url":"https://api.github.com/repos/phpspec/phpspec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phpspec/phpspec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phpspec/phpspec/teams","hooks_url":"https://api.github.com/repos/phpspec/phpspec/hooks","issue_events_url":"https://api.github.com/repos/phpspec/phpspec/issues/events{/number}","events_url":"https://api.github.com/repos/phpspec/phpspec/events","assignees_url":"https://api.github.com/repos/phpspec/phpspec/assignees{/user}","branches_url":"https://api.github.com/repos/phpspec/phpspec/branches{/branch}","tags_url":"https://api.github.com/repos/phpspec/phpspec/tags","blobs_url":"https://api.github.com/repos/phpspec/phpspec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phpspec/phpspec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phpspec/phpspec/git/refs{/sha}","trees_url":"https://api.github.com/repos/phpspec/phpspec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phpspec/phpspec/statuses/{sha}","languages_url":"https://api.github.com/repos/phpspec/phpspec/languages","stargazers_url":"https://api.github.com/repos/phpspec/phpspec/stargazers","contributors_url":"https://api.github.com/repos/phpspec/phpspec/contributors","subscribers_url":"https://api.github.com/repos/phpspec/phpspec/subscribers","subscription_url":"https://api.github.com/repos/phpspec/phpspec/subscription","commits_url":"https://api.github.com/repos/phpspec/phpspec/commits{/sha}","git_commits_url":"https://api.github.com/repos/phpspec/phpspec/git/commits{/sha}","comments_url":"https://api.github.com/repos/phpspec/phpspec/comments{/number}","issue_comment_url":"https://api.github.com/repos/phpspec/phpspec/issues/comments{/number}","contents_url":"https://api.github.com/repos/phpspec/phpspec/contents/{+path}","compare_url":"https://api.github.com/repos/phpspec/phpspec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phpspec/phpspec/merges","archive_url":"https://api.github.com/repos/phpspec/phpspec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phpspec/phpspec/downloads","issues_url":"https://api.github.com/repos/phpspec/phpspec/issues{/number}","pulls_url":"https://api.github.com/repos/phpspec/phpspec/pulls{/number}","milestones_url":"https://api.github.com/repos/phpspec/phpspec/milestones{/number}","notifications_url":"https://api.github.com/repos/phpspec/phpspec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phpspec/phpspec/labels{/name}","releases_url":"https://api.github.com/repos/phpspec/phpspec/releases{/id}","created_at":"2011-04-07T12:48:08Z","updated_at":"2015-06-03T08:58:53Z","pushed_at":"2015-06-02T20:53:21Z","git_url":"git://github.com/phpspec/phpspec.git","ssh_url":"git@github.com:phpspec/phpspec.git","clone_url":"https://github.com/phpspec/phpspec.git","svn_url":"https://github.com/phpspec/phpspec","homepage":"http://www.phpspec.net","size":7168,"stargazers_count":783,"watchers_count":783,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":156,"mirror_url":null,"open_issues_count":64,"forks":156,"open_issues":64,"watchers":783,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/phpspec/phpspec/pulls/711"},"html":{"href":"https://github.com/phpspec/phpspec/pull/711"},"issue":{"href":"https://api.github.com/repos/phpspec/phpspec/issues/711"},"comments":{"href":"https://api.github.com/repos/phpspec/phpspec/issues/711/comments"},"review_comments":{"href":"https://api.github.com/repos/phpspec/phpspec/pulls/711/comments"},"review_comment":{"href":"https://api.github.com/repos/phpspec/phpspec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phpspec/phpspec/pulls/711/commits"},"statuses":{"href":"https://api.github.com/repos/phpspec/phpspec/statuses/3f123199d9e7d70c41e6c825c12013b44742527e"}}}}