public function InputDefinitionTest::testGetArgumentRequiredCount 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::testGetArgumentRequiredCount()
File
- vendor/
symfony/ console/ Tests/ Input/ InputDefinitionTest.php, line 157
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function testGetArgumentRequiredCount() {
$this
->initializeArguments();
$definition = new InputDefinition();
$definition
->addArgument($this->foo2);
$this
->assertEquals(1, $definition
->getArgumentRequiredCount(), '->getArgumentRequiredCount() returns the number of required arguments');
$definition
->addArgument($this->foo);
$this
->assertEquals(1, $definition
->getArgumentRequiredCount(), '->getArgumentRequiredCount() returns the number of required arguments');
}