SymfonyComponentConsoleTesterCommandTester

Summary

No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
N/A
File
vendorSymfonyComponentConsoleTesterCommandTester.php
Package
Default
Class hierarchy
SymfonyComponentConsoleTesterCommandTester

Tags

author

Fabien Potencier fabien@symfony.com

Properties

$command

$command : 

Type

Tags

None found

$input

$input : 

Type

Tags

None found

$output

$output : 

Type

Tags

None found

Methods

__construct()

__construct(\Symfony\Component\Console\Command\Command  $command) 

Constructor.

Parameters

SymfonyComponentConsoleCommandCommand $command

A Command instance to test.

Tags

None found

execute()

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

Executes the command.

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

Returns

integer —

The command exit code

Tags

None found

getDisplay()

getDisplay() : string

Gets the display returned by the last execution of the command.

Returns

string —

The display

Tags

None found

getInput()

getInput() : \Symfony\Component\Console\Tester\InputInterface

Gets the input instance used by the last execution of the command.

Returns

SymfonyComponentConsoleTesterInputInterface —

The current input instance

Tags

None found

getOutput()

getOutput() : \Symfony\Component\Console\Tester\OutputInterface

Gets the output instance used by the last execution of the command.

Returns

SymfonyComponentConsoleTesterOutputInterface —

The current output instance

Tags

None found