public function ApplicationTester::run in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Tester/ApplicationTester.php \Symfony\Component\Console\Tester\ApplicationTester::run()
Executes the application.
Available options:
- interactive: Sets the input interactive flag
- decorated: Sets the output decorated flag
- verbosity: Sets the output verbosity flag
Parameters
array $input An array of arguments and options:
array $options An array of options:
Return value
int The command exit code
File
- vendor/
symfony/ console/ Tester/ ApplicationTester.php, line 61
Class
- ApplicationTester
- Eases the testing of console applications.
Namespace
Symfony\Component\Console\TesterCode
public function run(array $input, $options = array()) {
$this->input = new ArrayInput($input);
if (isset($options['interactive'])) {
$this->input
->setInteractive($options['interactive']);
}
$this->output = new StreamOutput(fopen('php://memory', 'w', false));
if (isset($options['decorated'])) {
$this->output
->setDecorated($options['decorated']);
}
if (isset($options['verbosity'])) {
$this->output
->setVerbosity($options['verbosity']);
}
return $this->statusCode = $this->application
->run($this->input, $this->output);
}