Eases the testing of console commands.
- author Fabien Potencier
- author Robin Chalas
CloneableInstantiable
Methods |
public __construct(Symfony |
public assertCommandIsSuccessful(string $message = '') : void |
public execute(array $input, array $options = []) : int Executes the command. Available execution options:
|
public getDisplay(bool $normalize = false) : string Gets the display returned by the last execution of the command or application.
|
public getErrorOutput(bool $normalize = false) : string Gets the output written to STDERR by the application.
|
public getInput() : Symfony Gets the input instance used by the last execution of the command or application. |
public getOutput() : Symfony Gets the output instance used by the last execution of the command or application. |
public getStatusCode() : int Gets the status code returned by the last execution of the command or application.
|
public setInputs(array $inputs) : static Sets the user inputs.
|
Properties |
private bool $captureStreamsIndependently = false |
private Symfony |
private Symfony |
private array $inputs = [] |
private Symfony |
private int $statusCode |
Methods |
private static createStream(array $inputs)
|
private initOutput(array $options) : void Initializes the output property. Available options:
|
Methods |
private static createStream(array $inputs)
|