You are here

public function InputDefinitionTest::testGetArgumentRequiredCount in Zircon Profile 8.0

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

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

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