class CommandTester
Eases the testing of console commands.
Methods
|
__construct(Command $command)
Constructor. |
||
| integer |
execute(array $input, array $options = array())
Executes the command. |
|
| string |
getDisplay()
Gets the display returned by the last execution of the command. |
|
| InputInterface |
getInput()
Gets the input instance used by the last execution of the command. |
|
| OutputInterface |
getOutput()
Gets the output instance used by the last execution of the command. |
Details
at line 34
public
__construct(Command $command)
Constructor.
at line 53
public integer
execute(array $input, array $options = array())
Executes the command.
Available options:
* interactive: Sets the input interactive flag
* decorated: Sets the output decorated flag
* verbosity: Sets the output verbosity flag
at line 76
public string
getDisplay()
Gets the display returned by the last execution of the command.
at line 88
public InputInterface
getInput()
Gets the input instance used by the last execution of the command.
at line 98
public OutputInterface
getOutput()
Gets the output instance used by the last execution of the command.