class CommandTester
Eases the testing of console commands.
__construct(Command $command) Constructor. | ||
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. | |
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. | |
int | getStatusCode() Gets the status code returned by the last execution of the application. |
Constructor.
Executes the command.
Available execution options:
Gets the display returned by the last execution of the command.
Gets the input instance used by the last execution of the command.
Gets the output instance used by the last execution of the command.
Gets the status code returned by the last execution of the application.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Console/Tester/CommandTester.html