SymfonyComponentConsoleTesterApplicationTester

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
vendorSymfonyComponentConsoleTesterApplicationTester.php
Package
Default
Class hierarchy
SymfonyComponentConsoleTesterApplicationTester

Tags

author

Fabien Potencier fabien@symfony.com

Properties

$application

$application : 

Type

Tags

None found

$input

$input : 

Type

Tags

None found

$output

$output : 

Type

Tags

None found

Methods

__construct()

__construct(\Symfony\Component\Console\Application  $application) 

Constructor.

Parameters

SymfonyComponentConsoleApplication $application

An Application instance to test.

Tags

None found

run()

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

Executes the application.

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 application.

Returns

string —

The display

Tags

None found

getInput()

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

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

Returns

SymfonyComponentConsoleInputInputInterface

The current input instance

Tags

None found

getOutput()

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

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

Returns

SymfonyComponentConsoleOutputOutputInterface

The current output instance

Tags

None found