{"action":"created","comment":{"url":"https://api.github.com/repos/infection/infection/pulls/comments/167445451","pull_request_review_id":95665889,"id":167445451,"diff_hunk":"@@ -34,13 +40,60 @@ class Application extends BaseApplication\n      */\n     private $container;\n \n+    /**\n+     * @var SymfonyStyle\n+     */\n+    private $io;\n+\n+    /**\n+     * @var bool\n+     */\n+    private $isXdebugLoaded;\n+\n+    /**\n+     * @var bool\n+     */\n+    private $isDebuggerDisabled;\n+\n     public function __construct(Container $container, string $name = self::NAME, string $version = self::VERSION)\n     {\n         $this->container = $container;\n+        $this->isDebuggerDisabled = empty((string) getenv(XdebugHandler::ENV_DISABLE_XDEBUG));\n \n         parent::__construct($name, $version);\n     }\n \n+    public function run(InputInterface $input = null, OutputInterface $output = null)\n+    {\n+        if (null === $input) {\n+            $input = new ArgvInput();\n+        }\n+\n+        if (null === $output) {\n+            $output = new ConsoleOutput();\n+        }\n+\n+        $this->io = new SymfonyStyle($input, $output);\n+\n+        if (PHP_SAPI === 'phpdbg') {\n+            $this->io->note(sprintf(self::RUNNING_WITH_NOTE, PHP_SAPI));\n+        } elseif ($this->isXdebugLoaded) {\n+            $this->io->note(sprintf(self::RUNNING_WITH_NOTE, 'xdebug'));\n+        }\n+\n+        $xdebug = new XdebugHandler(new ConfigBuilder(sys_get_temp_dir()));\n+        $xdebug->check();\n+        unset($xdebug);","path":"src/Console/Application.php","position":70,"original_position":70,"commit_id":"443c2f0019a3592d1cc9d39473f8547637fa6f35","original_commit_id":"443c2f0019a3592d1cc9d39473f8547637fa6f35","user":{"login":"theofidry","id":5175937,"avatar_url":"https://avatars3.githubusercontent.com/u/5175937?v=4","gravatar_id":"","url":"https://api.github.com/users/theofidry","html_url":"https://github.com/theofidry","followers_url":"https://api.github.com/users/theofidry/followers","following_url":"https://api.github.com/users/theofidry/following{/other_user}","gists_url":"https://api.github.com/users/theofidry/gists{/gist_id}","starred_url":"https://api.github.com/users/theofidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theofidry/subscriptions","organizations_url":"https://api.github.com/users/theofidry/orgs","repos_url":"https://api.github.com/users/theofidry/repos","events_url":"https://api.github.com/users/theofidry/events{/privacy}","received_events_url":"https://api.github.com/users/theofidry/received_events","type":"User","site_admin":false},"body":"why do you need to unset it?","created_at":"2018-02-11T19:09:54Z","updated_at":"2018-02-11T19:25:09Z","html_url":"https://github.com/infection/infection/pull/173#discussion_r167445451","pull_request_url":"https://api.github.com/repos/infection/infection/pulls/173","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/infection/infection/pulls/comments/167445451"},"html":{"href":"https://github.com/infection/infection/pull/173#discussion_r167445451"},"pull_request":{"href":"https://api.github.com/repos/infection/infection/pulls/173"}}},"pull_request":{"url":"https://api.github.com/repos/infection/infection/pulls/173","id":168467377,"html_url":"https://github.com/infection/infection/pull/173","diff_url":"https://github.com/infection/infection/pull/173.diff","patch_url":"https://github.com/infection/infection/pull/173.patch","issue_url":"https://api.github.com/repos/infection/infection/issues/173","number":173,"state":"open","locked":false,"title":"Pretty formatting for error message when xdebug and phpdbg are not used","user":{"login":"sidz","id":1302230,"avatar_url":"https://avatars2.githubusercontent.com/u/1302230?v=4","gravatar_id":"","url":"https://api.github.com/users/sidz","html_url":"https://github.com/sidz","followers_url":"https://api.github.com/users/sidz/followers","following_url":"https://api.github.com/users/sidz/following{/other_user}","gists_url":"https://api.github.com/users/sidz/gists{/gist_id}","starred_url":"https://api.github.com/users/sidz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sidz/subscriptions","organizations_url":"https://api.github.com/users/sidz/orgs","repos_url":"https://api.github.com/users/sidz/repos","events_url":"https://api.github.com/users/sidz/events{/privacy}","received_events_url":"https://api.github.com/users/sidz/received_events","type":"User","site_admin":false},"body":"This PR is bringing pretty formatting for the error message (which @theofidry suggested to do in the https://github.com/infection/infection/issues/137) when phpdbg and xdebug are not used.\r\n\r\nAlso we will add notes when Infection is running via phpdbg or xdebug.\r\n\r\nNote for phpdbg (the same will be for xdebug).\r\n![Image with phpdbg](https://i.imgur.com/x2mwcNj.png)\r\n\r\nWhen phpdbg and xdebug are not enabled\r\n![Image](https://i.imgur.com/SmmnJPU.png)\r\n","created_at":"2018-02-11T18:43:01Z","updated_at":"2018-02-11T19:25:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f19945a0f6a2a5b1d8aca627eeec3bb8e8d07e6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/infection/infection/pulls/173/commits","review_comments_url":"https://api.github.com/repos/infection/infection/pulls/173/comments","review_comment_url":"https://api.github.com/repos/infection/infection/pulls/comments{/number}","comments_url":"https://api.github.com/repos/infection/infection/issues/173/comments","statuses_url":"https://api.github.com/repos/infection/infection/statuses/443c2f0019a3592d1cc9d39473f8547637fa6f35","head":{"label":"sidz:pretty-formatting-error-message","ref":"pretty-formatting-error-message","sha":"443c2f0019a3592d1cc9d39473f8547637fa6f35","user":{"login":"sidz","id":1302230,"avatar_url":"https://avatars2.githubusercontent.com/u/1302230?v=4","gravatar_id":"","url":"https://api.github.com/users/sidz","html_url":"https://github.com/sidz","followers_url":"https://api.github.com/users/sidz/followers","following_url":"https://api.github.com/users/sidz/following{/other_user}","gists_url":"https://api.github.com/users/sidz/gists{/gist_id}","starred_url":"https://api.github.com/users/sidz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sidz/subscriptions","organizations_url":"https://api.github.com/users/sidz/orgs","repos_url":"https://api.github.com/users/sidz/repos","events_url":"https://api.github.com/users/sidz/events{/privacy}","received_events_url":"https://api.github.com/users/sidz/received_events","type":"User","site_admin":false},"repo":{"id":101921874,"name":"infection","full_name":"sidz/infection","owner":{"login":"sidz","id":1302230,"avatar_url":"https://avatars2.githubusercontent.com/u/1302230?v=4","gravatar_id":"","url":"https://api.github.com/users/sidz","html_url":"https://github.com/sidz","followers_url":"https://api.github.com/users/sidz/followers","following_url":"https://api.github.com/users/sidz/following{/other_user}","gists_url":"https://api.github.com/users/sidz/gists{/gist_id}","starred_url":"https://api.github.com/users/sidz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sidz/subscriptions","organizations_url":"https://api.github.com/users/sidz/orgs","repos_url":"https://api.github.com/users/sidz/repos","events_url":"https://api.github.com/users/sidz/events{/privacy}","received_events_url":"https://api.github.com/users/sidz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sidz/infection","description":"AST based PHP Mutation Testing Framework","fork":true,"url":"https://api.github.com/repos/sidz/infection","forks_url":"https://api.github.com/repos/sidz/infection/forks","keys_url":"https://api.github.com/repos/sidz/infection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sidz/infection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sidz/infection/teams","hooks_url":"https://api.github.com/repos/sidz/infection/hooks","issue_events_url":"https://api.github.com/repos/sidz/infection/issues/events{/number}","events_url":"https://api.github.com/repos/sidz/infection/events","assignees_url":"https://api.github.com/repos/sidz/infection/assignees{/user}","branches_url":"https://api.github.com/repos/sidz/infection/branches{/branch}","tags_url":"https://api.github.com/repos/sidz/infection/tags","blobs_url":"https://api.github.com/repos/sidz/infection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sidz/infection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sidz/infection/git/refs{/sha}","trees_url":"https://api.github.com/repos/sidz/infection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sidz/infection/statuses/{sha}","languages_url":"https://api.github.com/repos/sidz/infection/languages","stargazers_url":"https://api.github.com/repos/sidz/infection/stargazers","contributors_url":"https://api.github.com/repos/sidz/infection/contributors","subscribers_url":"https://api.github.com/repos/sidz/infection/subscribers","subscription_url":"https://api.github.com/repos/sidz/infection/subscription","commits_url":"https://api.github.com/repos/sidz/infection/commits{/sha}","git_commits_url":"https://api.github.com/repos/sidz/infection/git/commits{/sha}","comments_url":"https://api.github.com/repos/sidz/infection/comments{/number}","issue_comment_url":"https://api.github.com/repos/sidz/infection/issues/comments{/number}","contents_url":"https://api.github.com/repos/sidz/infection/contents/{+path}","compare_url":"https://api.github.com/repos/sidz/infection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sidz/infection/merges","archive_url":"https://api.github.com/repos/sidz/infection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sidz/infection/downloads","issues_url":"https://api.github.com/repos/sidz/infection/issues{/number}","pulls_url":"https://api.github.com/repos/sidz/infection/pulls{/number}","milestones_url":"https://api.github.com/repos/sidz/infection/milestones{/number}","notifications_url":"https://api.github.com/repos/sidz/infection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sidz/infection/labels{/name}","releases_url":"https://api.github.com/repos/sidz/infection/releases{/id}","deployments_url":"https://api.github.com/repos/sidz/infection/deployments","created_at":"2017-08-30T19:41:24Z","updated_at":"2017-08-30T19:41:26Z","pushed_at":"2018-02-11T18:47:08Z","git_url":"git://github.com/sidz/infection.git","ssh_url":"git@github.com:sidz/infection.git","clone_url":"https://github.com/sidz/infection.git","svn_url":"https://github.com/sidz/infection","homepage":"https://infection.github.io","size":690,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"infection:master","ref":"master","sha":"6eab0430385ad1819a2621ddc528429d53ff73df","user":{"login":"infection","id":29210618,"avatar_url":"https://avatars2.githubusercontent.com/u/29210618?v=4","gravatar_id":"","url":"https://api.github.com/users/infection","html_url":"https://github.com/infection","followers_url":"https://api.github.com/users/infection/followers","following_url":"https://api.github.com/users/infection/following{/other_user}","gists_url":"https://api.github.com/users/infection/gists{/gist_id}","starred_url":"https://api.github.com/users/infection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infection/subscriptions","organizations_url":"https://api.github.com/users/infection/orgs","repos_url":"https://api.github.com/users/infection/repos","events_url":"https://api.github.com/users/infection/events{/privacy}","received_events_url":"https://api.github.com/users/infection/received_events","type":"Organization","site_admin":false},"repo":{"id":95741878,"name":"infection","full_name":"infection/infection","owner":{"login":"infection","id":29210618,"avatar_url":"https://avatars2.githubusercontent.com/u/29210618?v=4","gravatar_id":"","url":"https://api.github.com/users/infection","html_url":"https://github.com/infection","followers_url":"https://api.github.com/users/infection/followers","following_url":"https://api.github.com/users/infection/following{/other_user}","gists_url":"https://api.github.com/users/infection/gists{/gist_id}","starred_url":"https://api.github.com/users/infection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infection/subscriptions","organizations_url":"https://api.github.com/users/infection/orgs","repos_url":"https://api.github.com/users/infection/repos","events_url":"https://api.github.com/users/infection/events{/privacy}","received_events_url":"https://api.github.com/users/infection/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infection/infection","description":"AST based PHP Mutation Testing Framework","fork":false,"url":"https://api.github.com/repos/infection/infection","forks_url":"https://api.github.com/repos/infection/infection/forks","keys_url":"https://api.github.com/repos/infection/infection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infection/infection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infection/infection/teams","hooks_url":"https://api.github.com/repos/infection/infection/hooks","issue_events_url":"https://api.github.com/repos/infection/infection/issues/events{/number}","events_url":"https://api.github.com/repos/infection/infection/events","assignees_url":"https://api.github.com/repos/infection/infection/assignees{/user}","branches_url":"https://api.github.com/repos/infection/infection/branches{/branch}","tags_url":"https://api.github.com/repos/infection/infection/tags","blobs_url":"https://api.github.com/repos/infection/infection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infection/infection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infection/infection/git/refs{/sha}","trees_url":"https://api.github.com/repos/infection/infection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infection/infection/statuses/{sha}","languages_url":"https://api.github.com/repos/infection/infection/languages","stargazers_url":"https://api.github.com/repos/infection/infection/stargazers","contributors_url":"https://api.github.com/repos/infection/infection/contributors","subscribers_url":"https://api.github.com/repos/infection/infection/subscribers","subscription_url":"https://api.github.com/repos/infection/infection/subscription","commits_url":"https://api.github.com/repos/infection/infection/commits{/sha}","git_commits_url":"https://api.github.com/repos/infection/infection/git/commits{/sha}","comments_url":"https://api.github.com/repos/infection/infection/comments{/number}","issue_comment_url":"https://api.github.com/repos/infection/infection/issues/comments{/number}","contents_url":"https://api.github.com/repos/infection/infection/contents/{+path}","compare_url":"https://api.github.com/repos/infection/infection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infection/infection/merges","archive_url":"https://api.github.com/repos/infection/infection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infection/infection/downloads","issues_url":"https://api.github.com/repos/infection/infection/issues{/number}","pulls_url":"https://api.github.com/repos/infection/infection/pulls{/number}","milestones_url":"https://api.github.com/repos/infection/infection/milestones{/number}","notifications_url":"https://api.github.com/repos/infection/infection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infection/infection/labels{/name}","releases_url":"https://api.github.com/repos/infection/infection/releases{/id}","deployments_url":"https://api.github.com/repos/infection/infection/deployments","created_at":"2017-06-29T05:29:49Z","updated_at":"2018-02-10T02:55:02Z","pushed_at":"2018-02-11T18:50:31Z","git_url":"git://github.com/infection/infection.git","ssh_url":"git@github.com:infection/infection.git","clone_url":"https://github.com/infection/infection.git","svn_url":"https://github.com/infection/infection","homepage":"https://infection.github.io","size":747,"stargazers_count":321,"watchers_count":321,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":29,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":24,"open_issues":29,"watchers":321,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/infection/infection/pulls/173"},"html":{"href":"https://github.com/infection/infection/pull/173"},"issue":{"href":"https://api.github.com/repos/infection/infection/issues/173"},"comments":{"href":"https://api.github.com/repos/infection/infection/issues/173/comments"},"review_comments":{"href":"https://api.github.com/repos/infection/infection/pulls/173/comments"},"review_comment":{"href":"https://api.github.com/repos/infection/infection/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/infection/infection/pulls/173/commits"},"statuses":{"href":"https://api.github.com/repos/infection/infection/statuses/443c2f0019a3592d1cc9d39473f8547637fa6f35"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"theofidry"}}