File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,6 @@ instead of
159
159
$commandTester = new CommandTester($command);
160
160
$commandTester->execute(
161
161
array(
162
- 'command' => $command->getName(),
163
162
'name' => 'Fabien',
164
163
'--yell' => true,
165
164
)
@@ -171,6 +170,11 @@ instead of
171
170
}
172
171
}
173
172
173
+ .. versionadded :: 2.4
174
+ Since Symfony 2.4, the ``CommandTester `` automatically detects the name of
175
+ the command to execute. Thus, you don't need to pass it via the ``command ``
176
+ argument anymore.
177
+
174
178
.. note ::
175
179
176
180
In the specific case above, the ``name `` parameter and the ``--yell `` option
@@ -200,7 +204,6 @@ you can extend your test from
200
204
$commandTester = new CommandTester($command);
201
205
$commandTester->execute(
202
206
array(
203
- 'command' => $command->getName(),
204
207
'name' => 'Fabien',
205
208
'--yell' => true,
206
209
)
You can’t perform that action at this time.
0 commit comments