public function InputDefinitionTest::testGetShortSynopsis in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\Console\Tests\InputCode
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]');
}