Class CommandTester
Eases the testing of console commands.
Methods summary
public
|
|
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
Parameters
- $input
array $input An array of arguments and options
- $options
array $options An array of options
Returns
integer The command exit code
|
public
string
|
#
getDisplay( )
Gets the display returned by the last execution of the command.
Gets the display returned by the last execution of the command.
Returns
string The display
|
public
InputInterface
|
#
getInput( )
Gets the input instance used by the last execution of the command.
Gets the input instance used by the last execution of the command.
Returns
InputInterface The current input instance
|
public
OutputInterface
|
#
getOutput( )
Gets the output instance used by the last execution of the command.
Gets the output instance used by the last execution of the command.
Returns
OutputInterface The current output instance
|