public function HelpCommandTest::testExecuteForCommand in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Command/HelpCommandTest.php \Symfony\Component\Console\Tests\Command\HelpCommandTest::testExecuteForCommand()
File
- vendor/
symfony/ console/ Tests/ Command/ HelpCommandTest.php, line 32
Class
Namespace
Symfony\Component\Console\Tests\CommandCode
public function testExecuteForCommand() {
$command = new HelpCommand();
$commandTester = new CommandTester($command);
$command
->setCommand(new ListCommand());
$commandTester
->execute(array(), array(
'decorated' => false,
));
$this
->assertContains('list [options] [--] [<namespace>]', $commandTester
->getDisplay(), '->execute() returns a text help for the given command');
$this
->assertContains('format=FORMAT', $commandTester
->getDisplay(), '->execute() returns a text help for the given command');
$this
->assertContains('raw', $commandTester
->getDisplay(), '->execute() returns a text help for the given command');
}