Symfony\Component\Console\Tester\CommandTester
Eases the testing of console commands.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class CommandTester
{
- // methods
- public void __construct()
- public integer execute()
- public string getDisplay()
- public InputInterface getInput()
- public OutputInterface getOutput()
Members
private
- $command
- $input
- $output
Methods
public
- __construct() — Constructor.
- execute() — Executes the command.
- getDisplay() — Gets the display returned by the last execution of the command.
- getInput() — Gets the input instance used by the last execution of the command.
- getOutput() — Gets the output instance used by the last execution of the command.