diff --git a/src/Symfony/Component/Console/Tester/CommandTester.php b/src/Symfony/Component/Console/Tester/CommandTester.php index a6d5359452..8d6486e11c 100644 --- a/src/Symfony/Component/Console/Tester/CommandTester.php +++ b/src/Symfony/Component/Console/Tester/CommandTester.php @@ -61,7 +61,7 @@ class CommandTester && (null !== $application = $this->command->getApplication()) && $application->getDefinition()->hasArgument('command') ) { - $input['command'] = $this->command->getName(); + $input = array_merge(array('command' => $this->command->getName()), $input); } $this->input = new ArrayInput($input);