1 | <?php namespace ParaTest\Console; |
||
11 | class ParaTestApplication extends Application |
||
12 | { |
||
13 | const NAME = 'ParaTest'; |
||
14 | const VERSION = '0.13.3'; |
||
15 | |||
16 | public function __construct() |
||
20 | |||
21 | /** |
||
22 | * Instantiates the specific Tester and runs it via the ParaTestCommand |
||
23 | * |
||
24 | * @todo for now paratest will only run the phpunit command |
||
25 | */ |
||
26 | public function doRun(InputInterface $input, OutputInterface $output) |
||
27 | { |
||
28 | $this->add(new ParaTestCommand(new PHPUnit())); |
||
29 | return parent::doRun($input, $output); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * The default InputDefinition for the application. Leave it to specific |
||
34 | * Tester objects for specifying further definitions |
||
35 | * |
||
36 | * @return InputDefinition |
||
37 | */ |
||
38 | public function getDefinition() |
||
39 | { |
||
40 | return new InputDefinition(array( |
||
41 | new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display this help message.') |
||
42 | )); |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param InputInterface $input |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getCommandName(InputInterface $input) |
||
53 | } |
||
54 |