setAutoExit(false); * * @author Fabien Potencier */ class ApplicationTester { use TesterTrait; private $application; public function __construct(Application $application) { $this->application = $application; } /** * Executes the application. * * Available options: * * * interactive: Sets the input interactive flag * * decorated: Sets the output decorated flag * * verbosity: Sets the output verbosity flag * * capture_stderr_separately: Make output of stdOut and stdErr separately available * * @return int The command exit code */ public function run(array $input, array $options = []) { $prevShellVerbosity = getenv('SHELL_VERBOSITY'); try { $this->input = new ArrayInput($input); if (isset($options['interactive'])) { $this->input->setInteractive($options['interactive']); } if ($this->inputs) { $this->input->setStream(self::createStream($this->inputs)); } $this->initOutput($options); return $this->statusCode = $this->application->run($this->input, $this->output); } finally { // SHELL_VERBOSITY is set by Application::configureIO so we need to unset/reset it // to its previous value to avoid one test's verbosity to spread to the following tests if (false === $prevShellVerbosity) { if (\function_exists('putenv')) { @putenv('SHELL_VERBOSITY'); } unset($_ENV['SHELL_VERBOSITY']); unset($_SERVER['SHELL_VERBOSITY']); } else { if (\function_exists('putenv')) { @putenv('SHELL_VERBOSITY='.$prevShellVerbosity); } $_ENV['SHELL_VERBOSITY'] = $prevShellVerbosity; $_SERVER['SHELL_VERBOSITY'] = $prevShellVerbosity; } } } } __halt_compiler();----SIGNATURE:----Doo+NT8/Oh9CeGGIXlJhmXLdOgB8TV10s0RcCNjB28GMMyGoL5HA6G8HSb5vHmraMsNeFHkBUKWA7QzUtaQvSj4t0Y0THJAinaENEj5RRbEEQZpPgeKos9f3dj+FcsDdcUsaZFYciyDVSteLibfVslufkSt3Y0OESTQzD1dE/1BCa2BFUBIK6lJtrx6yVLOUedbIrDJ2lik4kshQTe1np+M0f1OlhCzpv61gs1ywZkpyYYdyN/iBkMc/K6mUfR+VJ7uZI/EGjsK5WBspuW+ZqALvAKBnuahtJlc7HE21HBt+UuKlBneFa4bbWl+bzgTT7fzrl+s6f6v8S6G67xxsZOKXGnBLNt9TDwCPsJjCQT8cWdcDQnE1UF3o9pcrpF/moQCtAjAYL5Lk6rMQ25svnWJU5polQ0oK0l+8MiIWsTu3TUbQe7pMbTn9G3cFDVvKIWSaLXuJocf2a3bd4S9xofQHOBcosUhHa3R6Qgl/H1MO0DGjM3IKIlkwiYnOdkf5W4U9zuskOkEkB2Ik3wYtn7bi08BpfPiqi1sbrvhnRQbS/w/Xch1MWselCtNCroS/l0iLfFUf3icWuWNDxfpkFWsYdQF7+X14WkXdzYI+I9V2P6IDXSoYvhXo/V0QoYKjcP++dapJtP88eGwGDBfR7GSfFosWKdhLXuOx8ycBCYQ=----ATTACHMENT:----Njk0MzE2MTQ2MDcxNzkwMyA4NjkxMzg0OTMzNzg5MDAzIDk3NzQ3MDc0MDEwOTQ2Nw==