You are here

public function CommandTest::testAddArgument in Zircon Profile 8

Same name and namespace in other branches
  1. 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

CommandTest

Namespace

Symfony\Component\Console\Tests\Command

Code

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');
}