public function InputDefinitionTest::testGetArgumentCount in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Input/InputDefinitionTest.php \Symfony\Component\Console\Tests\Input\InputDefinitionTest::testGetArgumentCount()
File
- vendor/
symfony/ console/ Tests/ Input/ InputDefinitionTest.php, line 168
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function testGetArgumentCount() {
$this
->initializeArguments();
$definition = new InputDefinition();
$definition
->addArgument($this->foo2);
$this
->assertEquals(1, $definition
->getArgumentCount(), '->getArgumentCount() returns the number of arguments');
$definition
->addArgument($this->foo);
$this
->assertEquals(2, $definition
->getArgumentCount(), '->getArgumentCount() returns the number of arguments');
}