public function ListCommandTest::testExecuteListsCommands in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Command/ListCommandTest.php \Symfony\Component\Console\Tests\Command\ListCommandTest::testExecuteListsCommands()
File
- vendor/symfony/ console/ Tests/ Command/ ListCommandTest.php, line 19 
Class
Namespace
Symfony\Component\Console\Tests\CommandCode
public function testExecuteListsCommands() {
  $application = new Application();
  $commandTester = new CommandTester($command = $application
    ->get('list'));
  $commandTester
    ->execute(array(
    'command' => $command
      ->getName(),
  ), array(
    'decorated' => false,
  ));
  $this
    ->assertRegExp('/help\\s{2,}Displays help for a command/', $commandTester
    ->getDisplay(), '->execute() returns a list of available commands');
}