CommandTester
class CommandTester
Eases the testing of console commands.
Methods
int
execute(array $input, array $options = array())
Executes the command.
string
getDisplay(bool $normalize = false)
Gets the display returned by the last execution of the command.
getInput()
Gets the input instance used by the last execution of the command.
getOutput()
Gets the output instance used by the last execution of the command.
int
getStatusCode()
Gets the status code returned by the last execution of the application.
Details
at line line 37
__construct(Command $command)
Constructor.
at line line 56
int
execute(array $input, array $options = array())
Executes the command.
Available execution options:
- interactive: Sets the input interactive flag
- decorated: Sets the output decorated flag
- verbosity: Sets the output verbosity flag
at line line 90
string
getDisplay(bool $normalize = false)
Gets the display returned by the last execution of the command.
at line line 108
InputInterface
getInput()
Gets the input instance used by the last execution of the command.
at line line 118
OutputInterface
getOutput()
Gets the output instance used by the last execution of the command.
at line line 128
int
getStatusCode()
Gets the status code returned by the last execution of the application.