Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public static function tester($command, array $parameters = [], array $options = ['decorated' => false]) |
||
11 | { |
||
12 | $application = new Application(); |
||
13 | $command = $application->get($command); |
||
14 | $commandTester = new CommandTester($command); |
||
15 | $input = array_merge($parameters, ['command' => $command->getName()]); |
||
16 | $commandTester->execute($input, $options); |
||
17 | |||
18 | return $commandTester; |
||
19 | } |
||
20 | } |
||
21 |