\Symfony\Component\Console\TesterCommandTester

Eases the testing of console commands.

Summary

Methods
Properties
Constants
__construct()
execute()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$command
$input
$statusCode
N/A

Properties

$command

$command : 

Type

$input

$input : 

Type

$statusCode

$statusCode : 

Type

Methods

execute()

execute(array  $input, array  $options = array()) : integer

Executes the command.

Available execution 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 command arguments and options

array $options

An array of execution options

Returns

integer —

The command exit code