public function InputDefinitionTest::testAddArgument in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Tests/Input/InputDefinitionTest.php \Symfony\Component\Console\Tests\Input\InputDefinitionTest::testAddArgument()
File
- vendor/
symfony/ console/ Tests/ Input/ InputDefinitionTest.php, line 74
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function testAddArgument() {
$this
->initializeArguments();
$definition = new InputDefinition();
$definition
->addArgument($this->foo);
$this
->assertEquals(array(
'foo' => $this->foo,
), $definition
->getArguments(), '->addArgument() adds a InputArgument object');
$definition
->addArgument($this->bar);
$this
->assertEquals(array(
'foo' => $this->foo,
'bar' => $this->bar,
), $definition
->getArguments(), '->addArgument() adds a InputArgument object');
}