public function CommandTest::testGetSynopsis in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\Console\Tests\CommandCode
public function testGetSynopsis() {
$command = new \TestCommand();
$command
->addOption('foo');
$command
->addArgument('bar');
$this
->assertEquals('namespace:name [--foo] [--] [<bar>]', $command
->getSynopsis(), '->getSynopsis() returns the synopsis');
}