public function CommandTest::testAddArgument 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::testAddArgument()
File
- vendor/
symfony/ console/ Tests/ Command/ CommandTest.php, line 71
Class
Namespace
Symfony\Component\Console\Tests\CommandCode
public function testAddArgument() {
$command = new \TestCommand();
$ret = $command
->addArgument('foo');
$this
->assertEquals($command, $ret, '->addArgument() implements a fluent interface');
$this
->assertTrue($command
->getDefinition()
->hasArgument('foo'), '->addArgument() adds an argument to the command');
}