{"action":"created","comment":{"url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/pulls/comments/25094391","id":25094391,"diff_hunk":"@@ -0,0 +1,97 @@\n+<?php\n+/**\n+ * @file\n+ * Contains \\Drupal\\AppConsole\\Command\\TestDebugCommand.\n+ */\n+\n+namespace Drupal\\AppConsole\\Command;\n+\n+use Symfony\\Component\\Console\\Input\\InputArgument;\n+use Symfony\\Component\\Console\\Input\\InputOption;\n+use Symfony\\Component\\Console\\Input\\InputInterface;\n+use Symfony\\Component\\Console\\Output\\OutputInterface;\n+use Drupal\\Component\\Serialization\\Yaml;\n+use Drupal\\simpletest\\TestDiscovery;\n+\n+class TestDebugCommand extends ContainerAwareCommand\n+{\n+\n+  protected function configure()\n+  {\n+    $this\n+      ->setName('test:debug')\n+      ->setDescription($this->trans('commands.test.debug.description'))\n+      ->addArgument('test-id', InputArgument::OPTIONAL,\n+            $this->trans('commands.test.debug.arguments.resource-id'))\n+      ->addOption('group', '', InputOption::VALUE_OPTIONAL,\n+            $this->trans('commands.test.debug.options.group'))\n+    ;\n+\n+    $this->addDependency('simpletest');\n+  }\n+\n+  protected function execute(InputInterface $input, OutputInterface $output)\n+  {\n+    $test_id = $input->getArgument('test-id');\n+    $group = $input->getOption('group');\n+\n+\n+    $table = $this->getHelperSet()->get('table');\n+    $table->setlayout($table::LAYOUT_COMPACT);\n+\n+    if ($test_id) {\n+        $this->getTestByID($output, $table, $test_id);\n+    } else {\n+        $this->getAllTests($output, $table, $group);\n+    }\n+  }\n+\n+  /**\n+   * @param $output         OutputInterface\n+   * @param $table          TableHelper\n+   * @param $config_name    String\n+   */\n+  private function getTestByID($output, $table, $test_id)\n+  {\n+      $testing_groups = simpletest_test_get_all();","path":"src/Command/TestDebugCommand.php","position":56,"original_position":56,"commit_id":"bf3ca69abb6b56b19eeb1f0e16d39ac5206aa235","original_commit_id":"bf3ca69abb6b56b19eeb1f0e16d39ac5206aa235","user":{"login":"dmouse","id":198571,"avatar_url":"https://avatars.githubusercontent.com/u/198571?v=3","gravatar_id":"","url":"https://api.github.com/users/dmouse","html_url":"https://github.com/dmouse","followers_url":"https://api.github.com/users/dmouse/followers","following_url":"https://api.github.com/users/dmouse/following{/other_user}","gists_url":"https://api.github.com/users/dmouse/gists{/gist_id}","starred_url":"https://api.github.com/users/dmouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmouse/subscriptions","organizations_url":"https://api.github.com/users/dmouse/orgs","repos_url":"https://api.github.com/users/dmouse/repos","events_url":"https://api.github.com/users/dmouse/events{/privacy}","received_events_url":"https://api.github.com/users/dmouse/received_events","type":"User","site_admin":false},"body":"I think that is better use the service container to get all test availables in Drupal:\r\ncontainer-get(service('test_discovery')->getTestClasses(null)","created_at":"2015-02-20T19:11:16Z","updated_at":"2015-02-20T19:11:16Z","html_url":"https://github.com/hechoendrupal/DrupalAppConsole/pull/429#discussion_r25094391","pull_request_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/pulls/429","_links":{"self":{"href":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/pulls/comments/25094391"},"html":{"href":"https://github.com/hechoendrupal/DrupalAppConsole/pull/429#discussion_r25094391"},"pull_request":{"href":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/pulls/429"}}},"pull_request":{"url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/pulls/429","id":29721478,"html_url":"https://github.com/hechoendrupal/DrupalAppConsole/pull/429","diff_url":"https://github.com/hechoendrupal/DrupalAppConsole/pull/429.diff","patch_url":"https://github.com/hechoendrupal/DrupalAppConsole/pull/429.patch","issue_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/issues/429","number":429,"state":"open","locked":false,"title":"New command to list tests unit available","user":{"login":"enzolutions","id":907914,"avatar_url":"https://avatars.githubusercontent.com/u/907914?v=3","gravatar_id":"","url":"https://api.github.com/users/enzolutions","html_url":"https://github.com/enzolutions","followers_url":"https://api.github.com/users/enzolutions/followers","following_url":"https://api.github.com/users/enzolutions/following{/other_user}","gists_url":"https://api.github.com/users/enzolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/enzolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enzolutions/subscriptions","organizations_url":"https://api.github.com/users/enzolutions/orgs","repos_url":"https://api.github.com/users/enzolutions/repos","events_url":"https://api.github.com/users/enzolutions/events{/privacy}","received_events_url":"https://api.github.com/users/enzolutions/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-20T19:02:30Z","updated_at":"2015-02-20T19:11:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"67d1482036428b0b5264dc0b9e9495c7049e0d61","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/pulls/429/commits","review_comments_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/pulls/429/comments","review_comment_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/pulls/comments/{number}","comments_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/issues/429/comments","statuses_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/statuses/bf3ca69abb6b56b19eeb1f0e16d39ac5206aa235","head":{"label":"enzolutions:simpletest","ref":"simpletest","sha":"bf3ca69abb6b56b19eeb1f0e16d39ac5206aa235","user":{"login":"enzolutions","id":907914,"avatar_url":"https://avatars.githubusercontent.com/u/907914?v=3","gravatar_id":"","url":"https://api.github.com/users/enzolutions","html_url":"https://github.com/enzolutions","followers_url":"https://api.github.com/users/enzolutions/followers","following_url":"https://api.github.com/users/enzolutions/following{/other_user}","gists_url":"https://api.github.com/users/enzolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/enzolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enzolutions/subscriptions","organizations_url":"https://api.github.com/users/enzolutions/orgs","repos_url":"https://api.github.com/users/enzolutions/repos","events_url":"https://api.github.com/users/enzolutions/events{/privacy}","received_events_url":"https://api.github.com/users/enzolutions/received_events","type":"User","site_admin":false},"repo":{"id":20572615,"name":"DrupalAppConsole","full_name":"enzolutions/DrupalAppConsole","owner":{"login":"enzolutions","id":907914,"avatar_url":"https://avatars.githubusercontent.com/u/907914?v=3","gravatar_id":"","url":"https://api.github.com/users/enzolutions","html_url":"https://github.com/enzolutions","followers_url":"https://api.github.com/users/enzolutions/followers","following_url":"https://api.github.com/users/enzolutions/following{/other_user}","gists_url":"https://api.github.com/users/enzolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/enzolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enzolutions/subscriptions","organizations_url":"https://api.github.com/users/enzolutions/orgs","repos_url":"https://api.github.com/users/enzolutions/repos","events_url":"https://api.github.com/users/enzolutions/events{/privacy}","received_events_url":"https://api.github.com/users/enzolutions/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/enzolutions/DrupalAppConsole","description":"The Symfony Console for Drupal","fork":true,"url":"https://api.github.com/repos/enzolutions/DrupalAppConsole","forks_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/forks","keys_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/teams","hooks_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/hooks","issue_events_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/issues/events{/number}","events_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/events","assignees_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/assignees{/user}","branches_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/branches{/branch}","tags_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/tags","blobs_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/git/refs{/sha}","trees_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/statuses/{sha}","languages_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/languages","stargazers_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/stargazers","contributors_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/contributors","subscribers_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/subscribers","subscription_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/subscription","commits_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/commits{/sha}","git_commits_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/git/commits{/sha}","comments_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/comments{/number}","issue_comment_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/issues/comments/{number}","contents_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/contents/{+path}","compare_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/merges","archive_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/downloads","issues_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/issues{/number}","pulls_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/pulls{/number}","milestones_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/milestones{/number}","notifications_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/labels{/name}","releases_url":"https://api.github.com/repos/enzolutions/DrupalAppConsole/releases{/id}","created_at":"2014-06-06T17:46:50Z","updated_at":"2015-01-19T14:16:51Z","pushed_at":"2015-02-20T19:02:17Z","git_url":"git://github.com/enzolutions/DrupalAppConsole.git","ssh_url":"git@github.com:enzolutions/DrupalAppConsole.git","clone_url":"https://github.com/enzolutions/DrupalAppConsole.git","svn_url":"https://github.com/enzolutions/DrupalAppConsole","homepage":"","size":1424,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hechoendrupal:master","ref":"master","sha":"818690ba9e35c9799102e5a1e73e84c7a435abcb","user":{"login":"hechoendrupal","id":1341712,"avatar_url":"https://avatars.githubusercontent.com/u/1341712?v=3","gravatar_id":"","url":"https://api.github.com/users/hechoendrupal","html_url":"https://github.com/hechoendrupal","followers_url":"https://api.github.com/users/hechoendrupal/followers","following_url":"https://api.github.com/users/hechoendrupal/following{/other_user}","gists_url":"https://api.github.com/users/hechoendrupal/gists{/gist_id}","starred_url":"https://api.github.com/users/hechoendrupal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hechoendrupal/subscriptions","organizations_url":"https://api.github.com/users/hechoendrupal/orgs","repos_url":"https://api.github.com/users/hechoendrupal/repos","events_url":"https://api.github.com/users/hechoendrupal/events{/privacy}","received_events_url":"https://api.github.com/users/hechoendrupal/received_events","type":"Organization","site_admin":false},"repo":{"id":12452145,"name":"DrupalAppConsole","full_name":"hechoendrupal/DrupalAppConsole","owner":{"login":"hechoendrupal","id":1341712,"avatar_url":"https://avatars.githubusercontent.com/u/1341712?v=3","gravatar_id":"","url":"https://api.github.com/users/hechoendrupal","html_url":"https://github.com/hechoendrupal","followers_url":"https://api.github.com/users/hechoendrupal/followers","following_url":"https://api.github.com/users/hechoendrupal/following{/other_user}","gists_url":"https://api.github.com/users/hechoendrupal/gists{/gist_id}","starred_url":"https://api.github.com/users/hechoendrupal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hechoendrupal/subscriptions","organizations_url":"https://api.github.com/users/hechoendrupal/orgs","repos_url":"https://api.github.com/users/hechoendrupal/repos","events_url":"https://api.github.com/users/hechoendrupal/events{/privacy}","received_events_url":"https://api.github.com/users/hechoendrupal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hechoendrupal/DrupalAppConsole","description":"Drupal Console","fork":false,"url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole","forks_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/forks","keys_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/teams","hooks_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/hooks","issue_events_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/issues/events{/number}","events_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/events","assignees_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/assignees{/user}","branches_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/branches{/branch}","tags_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/tags","blobs_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/git/refs{/sha}","trees_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/statuses/{sha}","languages_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/languages","stargazers_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/stargazers","contributors_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/contributors","subscribers_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/subscribers","subscription_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/subscription","commits_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/commits{/sha}","git_commits_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/git/commits{/sha}","comments_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/comments{/number}","issue_comment_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/issues/comments/{number}","contents_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/contents/{+path}","compare_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/merges","archive_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/downloads","issues_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/issues{/number}","pulls_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/pulls{/number}","milestones_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/milestones{/number}","notifications_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/labels{/name}","releases_url":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/releases{/id}","created_at":"2013-08-29T05:22:06Z","updated_at":"2015-02-20T05:00:35Z","pushed_at":"2015-02-20T05:00:35Z","git_url":"git://github.com/hechoendrupal/DrupalAppConsole.git","ssh_url":"git@github.com:hechoendrupal/DrupalAppConsole.git","clone_url":"https://github.com/hechoendrupal/DrupalAppConsole.git","svn_url":"https://github.com/hechoendrupal/DrupalAppConsole","homepage":"http://drupalconsole.com","size":3660,"stargazers_count":177,"watchers_count":177,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":58,"mirror_url":null,"open_issues_count":40,"forks":58,"open_issues":40,"watchers":177,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/pulls/429"},"html":{"href":"https://github.com/hechoendrupal/DrupalAppConsole/pull/429"},"issue":{"href":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/issues/429"},"comments":{"href":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/issues/429/comments"},"review_comments":{"href":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/pulls/429/comments"},"review_comment":{"href":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/pulls/429/commits"},"statuses":{"href":"https://api.github.com/repos/hechoendrupal/DrupalAppConsole/statuses/bf3ca69abb6b56b19eeb1f0e16d39ac5206aa235"}}}}