You are here

public function CommandTest::testGetSynopsis in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Command/CommandTest.php \Symfony\Component\Console\Tests\Command\CommandTest::testGetSynopsis()

File

vendor/symfony/console/Tests/Command/CommandTest.php, line 155

Class

CommandTest

Namespace

Symfony\Component\Console\Tests\Command

Code

public function testGetSynopsis() {
  $command = new \TestCommand();
  $command
    ->addOption('foo');
  $command
    ->addArgument('bar');
  $this
    ->assertEquals('namespace:name [--foo] [--] [<bar>]', $command
    ->getSynopsis(), '->getSynopsis() returns the synopsis');
}