AppVariable

class AppVariable Exposes some Symfony parameters and services as an "app" global variable. Methods setTokenStorage(TokenStorageInterface $tokenStorage) setRequestStack(RequestStack $requestStack) setEnvironment($environment) setDebug($debug) mixed getUser() Returns the current user. Request|null getRequest() Returns the current request. Session|null getSession() Returns the current session. string getEnvironment() Returns the current app environmen

ApplicationTester::run()

int run(array $input, array $options = array()) Executes the application. Available options: interactive: Sets the input interactive flag decorated: Sets the output decorated flag verbosity: Sets the output verbosity flag capturestderrseparately: Make output of stdOut and stdErr separately available Parameters array $input An array of arguments and options array $options An array of options Return Value int The command exit code

ApplicationTester::getStatusCode()

int getStatusCode() Gets the status code returned by the last execution of the application. Return Value int The status code

ApplicationTester::getOutput()

OutputInterface getOutput() Gets the output instance used by the last execution of the application. Return Value OutputInterface The current output instance

ApplicationTester::getInput()

InputInterface getInput() Gets the input instance used by the last execution of the application. Return Value InputInterface The current input instance

ApplicationTester::getErrorOutput()

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

ApplicationTester::getDisplay()

string getDisplay(bool $normalize = false) Gets the display returned by the last execution of the application. Parameters bool $normalize Whether to normalize end of lines to \n or not Return Value string The display

ApplicationTester

class ApplicationTester 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); Methods __construct(Application $application) int run(array $input, array $options = array()) Executes the application. string getDisplay(bool $normalize = false) Gets the display returned by the last execution of the application. string getErrorOutput(bool $norma

ApplicationDescription::getNamespaces()

array getNamespaces() Return Value array

ApplicationDescription::getCommands()

Command[] getCommands() Return Value Command[]