[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/symfony/console/Tester/ -> ApplicationTester.php (summary)

(no description)

File Size: 176 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ApplicationTester:: (7 methods):
  __construct()
  run()
  getDisplay()
  getErrorOutput()
  getInput()
  getOutput()
  getStatusCode()


Class: ApplicationTester  - X-Ref

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)   X-Ref


run(array $input, $options = [])   X-Ref
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

param: array $input   An array of arguments and options
param: array $options An array of options
return: int The command exit code

getDisplay($normalize = false)   X-Ref
Gets the display returned by the last execution of the application.

param: bool $normalize Whether to normalize end of lines to \n or not
return: string The display

getErrorOutput($normalize = false)   X-Ref
Gets the output written to STDERR by the application.

param: bool $normalize Whether to normalize end of lines to \n or not
return: string

getInput()   X-Ref
Gets the input instance used by the last execution of the application.

return: InputInterface The current input instance

getOutput()   X-Ref
Gets the output instance used by the last execution of the application.

return: OutputInterface The current output instance

getStatusCode()   X-Ref
Gets the status code returned by the last execution of the application.

return: int The status code



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1