[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

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

(no description)

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

Defines 1 class

CommandTester:: (8 methods):
  __construct()
  execute()
  getDisplay()
  getInput()
  getOutput()
  getStatusCode()
  setInputs()
  createStream()


Class: CommandTester  - X-Ref

Eases the testing of console commands.

__construct(Command $command)   X-Ref
No description

execute(array $input, array $options = [])   X-Ref
Executes the command.

Available execution options:

* interactive: Sets the input interactive flag
* decorated:   Sets the output decorated flag
* verbosity:   Sets the output verbosity flag

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

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

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

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

return: InputInterface The current input instance

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

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

setInputs(array $inputs)   X-Ref
Sets the user inputs.

param: array $inputs An array of strings representing each input
return: CommandTester

createStream(array $inputs)   X-Ref
No description



Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1