trait TesterTrait

Methods

string
getDisplay(bool $normalize = false)

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

string
getErrorOutput(bool $normalize = false)

Gets the output written to STDERR by the application.

getInput()

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

getOutput()

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

int
getStatusCode()

Gets the status code returned by the last execution of the command or application.

setInputs(array $inputs)

Sets the user inputs.

Details

at line 36
string getDisplay(bool $normalize = false)

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

Parameters

bool $normalize Whether to normalize end of lines to \n or not

Return Value

string The display

at line 56
string getErrorOutput(bool $normalize = false)

Gets the output written to STDERR by the application.

Parameters

bool $normalize Whether to normalize end of lines to \n or not

Return Value

string

at line 78
InputInterface getInput()

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

Return Value

InputInterface The current input instance

at line 88
OutputInterface getOutput()

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

Return Value

OutputInterface The current output instance

at line 98
int getStatusCode()

Gets the status code returned by the last execution of the command or application.

Return Value

int The status code

at line 111
TesterTrait setInputs(array $inputs)

Sets the user inputs.

Parameters

array $inputs An array of strings representing each input passed to the command input stream

Return Value

TesterTrait