Symfony\Component\Console\Tester\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);
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class ApplicationTester
{
- // members
- private $application;
- private $input;
- private $output;
- // methods
- public void __construct()
- public integer run()
- public string getDisplay()
- public InputInterface getInput()
- public OutputInterface getOutput()
Members
private
- $application
- $input
- $output
Methods
public
- __construct() — Constructor.
- getDisplay() — Gets the display returned by the last execution of the application.
- getInput() — Gets the input instance used by the last execution of the application.
- getOutput() — Gets the output instance used by the last execution of the application.
- run() — Executes the application.