You are here

public function InputDefinitionTest::testGetShortSynopsis in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Input/InputDefinitionTest.php \Symfony\Component\Console\Tests\Input\InputDefinitionTest::testGetShortSynopsis()

File

vendor/symfony/console/Tests/Input/InputDefinitionTest.php, line 380

Class

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testGetShortSynopsis() {
  $definition = new InputDefinition(array(
    new InputOption('foo'),
    new InputOption('bar'),
    new InputArgument('cat'),
  ));
  $this
    ->assertEquals('[options] [--] [<cat>]', $definition
    ->getSynopsis(true), '->getSynopsis(true) groups options in [options]');
}