TYPO3
7.6
|
Public Member Functions | |
__construct (Command $command) | |
execute (array $input, array $options=array()) | |
getDisplay ($normalize=false) | |
getInput () | |
getOutput () | |
getStatusCode () | |
Private Attributes | |
$command | |
$input | |
$output | |
$statusCode | |
Eases the testing of console commands.
Definition at line 25 of file CommandTester.php.
__construct | ( | Command | $command | ) |
execute | ( | array | $input, |
array | $options = array() |
||
) |
Executes the command.
Available execution options:
array | $input | An array of command arguments and options |
array | $options | An array of execution options |
Definition at line 56 of file CommandTester.php.
Referenced by HelpCommandTest\testExecuteForApplicationCommand(), HelpCommandTest\testExecuteForApplicationCommandWithXmlOption(), ListCommandTest\testExecuteListsCommands(), ListCommandTest\testExecuteListsCommandsWithNamespaceArgument(), ListCommandTest\testExecuteListsCommandsWithRawOption(), and ListCommandTest\testExecuteListsCommandsWithXmlOption().
getDisplay | ( | $normalize = false | ) |
Gets the display returned by the last execution of the command.
bool | $normalize | Whether to normalize end of lines to or not |
Definition at line 90 of file CommandTester.php.
getInput | ( | ) |
Gets the input instance used by the last execution of the command.
Definition at line 108 of file CommandTester.php.
References CommandTester\$input.
getOutput | ( | ) |
Gets the output instance used by the last execution of the command.
Definition at line 118 of file CommandTester.php.
References CommandTester\$output.
getStatusCode | ( | ) |
Gets the status code returned by the last execution of the application.
Definition at line 128 of file CommandTester.php.
References CommandTester\$statusCode.
|
private |
Definition at line 27 of file CommandTester.php.
Referenced by CommandTester\__construct().
|
private |
Definition at line 28 of file CommandTester.php.
Referenced by CommandTester\getInput().
|
private |
Definition at line 29 of file CommandTester.php.
Referenced by CommandTester\getOutput().
|
private |
Definition at line 30 of file CommandTester.php.
Referenced by CommandTester\getStatusCode().