public function CommandTest::testAddOption in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Tests/Command/CommandTest.php \Symfony\Component\Console\Tests\Command\CommandTest::testAddOption()
File
- vendor/
symfony/ console/ Tests/ Command/ CommandTest.php, line 79
Class
Namespace
Symfony\Component\Console\Tests\CommandCode
public function testAddOption() {
$command = new \TestCommand();
$ret = $command
->addOption('foo');
$this
->assertEquals($command, $ret, '->addOption() implements a fluent interface');
$this
->assertTrue($command
->getDefinition()
->hasOption('foo'), '->addOption() adds an option to the command');
}