public function HelpCommandTest::testExecuteForApplicationCommandWithXmlOption 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::testExecuteForApplicationCommandWithXmlOption()
File
- vendor/
symfony/ console/ Tests/ Command/ HelpCommandTest.php, line 62
Class
Namespace
Symfony\Component\Console\Tests\CommandCode
public function testExecuteForApplicationCommandWithXmlOption() {
$application = new Application();
$commandTester = new CommandTester($application
->get('help'));
$commandTester
->execute(array(
'command_name' => 'list',
'--format' => 'xml',
));
$this
->assertContains('list [--xml] [--raw] [--format FORMAT] [--] [<namespace>]', $commandTester
->getDisplay(), '->execute() returns a text help for the given command');
$this
->assertContains('<command', $commandTester
->getDisplay(), '->execute() returns an XML help text if --format=xml is passed');
}