public function HelpCommandTest::testExecuteForApplicationCommand 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::testExecuteForApplicationCommand()
File
- vendor/
symfony/ console/ Tests/ Command/ HelpCommandTest.php, line 52
Class
Namespace
Symfony\Component\Console\Tests\CommandCode
public function testExecuteForApplicationCommand() {
$application = new Application();
$commandTester = new CommandTester($application
->get('help'));
$commandTester
->execute(array(
'command_name' => 'list',
));
$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');
}