You are here

public function ListCommandTest::testExecuteListsCommandsWithRawOption in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Tests/Command/ListCommandTest.php \Symfony\Component\Console\Tests\Command\ListCommandTest::testExecuteListsCommandsWithRawOption()

File

vendor/symfony/console/Tests/Command/ListCommandTest.php, line 36

Class

ListCommandTest

Namespace

Symfony\Component\Console\Tests\Command

Code

public function testExecuteListsCommandsWithRawOption() {
  $application = new Application();
  $commandTester = new CommandTester($command = $application
    ->get('list'));
  $commandTester
    ->execute(array(
    'command' => $command
      ->getName(),
    '--raw' => true,
  ));
  $output = <<<EOF
help   Displays help for a command
list   Lists commands

EOF;
  $this
    ->assertEquals($output, $commandTester
    ->getDisplay(true));
}