class ApplicationTester
Eases the testing of console applications.
When testing an application, don't forget to disable the auto exit flag:
$application = new Application();
$application->setAutoExit(false);
__construct(Application $application) Constructor. | ||
int | run(array $input, array $options = array()) Executes the application. | |
string | getDisplay(bool $normalize = false) Gets the display returned by the last execution of the application. | |
InputInterface | getInput() Gets the input instance used by the last execution of the application. | |
OutputInterface | getOutput() Gets the output instance used by the last execution of the application. | |
int | getStatusCode() Gets the status code returned by the last execution of the application. |
Constructor.
Executes the application.
Available options:
Gets the display returned by the last execution of the application.
Gets the input instance used by the last execution of the application.
Gets the output instance used by the last execution of the application.
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/ApplicationTester.html