![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct (Application $application) | |
run (array $input, $options=array()) | |
getDisplay ($normalize=false) | |
getInput () | |
getOutput () | |
getStatusCode () | |
Private Attributes | |
$application | |
$input | |
$output | |
$statusCode | |
Eases the testing of console applications.
When testing an application, don't forget to disable the auto exit flag:
$application = new Application(); $application->setAutoExit(false);
Definition at line 30 of file ApplicationTester.php.
__construct | ( | Application | $application | ) |
Constructor.
Application | $application | An Application instance to test. |
Definition at line 42 of file ApplicationTester.php.
References ApplicationTester\$application.
getDisplay | ( | $normalize = false | ) |
Gets the display returned by the last execution of the application.
bool | $normalize | Whether to normalize end of lines to or not |
Definition at line 86 of file ApplicationTester.php.
getInput | ( | ) |
Gets the input instance used by the last execution of the application.
Definition at line 104 of file ApplicationTester.php.
References ApplicationTester\$input.
getOutput | ( | ) |
Gets the output instance used by the last execution of the application.
Definition at line 114 of file ApplicationTester.php.
References ApplicationTester\$output.
getStatusCode | ( | ) |
Gets the status code returned by the last execution of the application.
Definition at line 124 of file ApplicationTester.php.
References ApplicationTester\$statusCode.
run | ( | array | $input, |
$options = array() |
|||
) |
Executes the application.
Available options:
array | $input | An array of arguments and options |
array | $options | An array of options |
Definition at line 61 of file ApplicationTester.php.
|
private |
Definition at line 32 of file ApplicationTester.php.
Referenced by ApplicationTester\__construct().
|
private |
Definition at line 33 of file ApplicationTester.php.
Referenced by ApplicationTester\getInput().
|
private |
Definition at line 34 of file ApplicationTester.php.
Referenced by ApplicationTester\getOutput().
|
private |
Definition at line 35 of file ApplicationTester.php.
Referenced by ApplicationTester\getStatusCode().