{"action":"opened","issue":{"url":"https://api.github.com/repos/liip/LiipFunctionalTestBundle/issues/219","labels_url":"https://api.github.com/repos/liip/LiipFunctionalTestBundle/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/liip/LiipFunctionalTestBundle/issues/219/comments","events_url":"https://api.github.com/repos/liip/LiipFunctionalTestBundle/issues/219/events","html_url":"https://github.com/liip/LiipFunctionalTestBundle/issues/219","id":126683486,"number":219,"title":"How to use runCommand()?","user":{"login":"Aerendir","id":1968622,"avatar_url":"https://avatars.githubusercontent.com/u/1968622?v=3","gravatar_id":"","url":"https://api.github.com/users/Aerendir","html_url":"https://github.com/Aerendir","followers_url":"https://api.github.com/users/Aerendir/followers","following_url":"https://api.github.com/users/Aerendir/following{/other_user}","gists_url":"https://api.github.com/users/Aerendir/gists{/gist_id}","starred_url":"https://api.github.com/users/Aerendir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aerendir/subscriptions","organizations_url":"https://api.github.com/users/Aerendir/orgs","repos_url":"https://api.github.com/users/Aerendir/repos","events_url":"https://api.github.com/users/Aerendir/events{/privacy}","received_events_url":"https://api.github.com/users/Aerendir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-14T15:54:55Z","updated_at":"2016-01-14T15:54:55Z","closed_at":null,"body":"I'm trying to use the `WebTestCase::runCommand()` method.\r\n\r\nI have yet implemented my unit test to test command, but, as I've anyway extend `WebTestBundle` to load fixtures, I like to also use other useful methods that the bundle provides.\r\nSo II'd like to rewrite my tests to use those methods.\r\n\r\nNow I'm working on a command and seen the code of the method `WebTestCase::runCommand()`.\r\n\r\nI noted it doesn't use the helpful `Symfony\\Component\\Console\\Tester\\CommandTester()` class: is there a reason for this? Or may be the `CommandTester` class were released after the `WebTestCase::runCommand()`?\r\n\r\nCan someone help me understand?\r\n\r\nAlso, just a small note, I noted the bundle may be splitted in more test cases for a better organization of code.\r\n\r\nMaybe something like:\r\n\r\n    BaseTestCase\r\n    |___ WebTestCase\r\n    |___ CommandTestCase\r\n\r\nThis way it will be possible to better refact some other methods like `WebTestCase::fetchContent()` that currently is very very long...\r\n"}}