ApplicationTester

ApplicationTester

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);

Methods

__construct(Application $application)
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.

string 登录查看完整内容