$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'
);
} 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'
);
} public function testGetArgumentDefaults() { $definition =
new InputDefinition([ new InputArgument('foo1', InputArgument::OPTIONAL
),
new InputArgument('foo2', InputArgument::OPTIONAL, '', 'default'
),
new InputArgument('foo3', InputArgument::OPTIONAL | InputArgument::IS_ARRAY
),
// new InputArgument('foo4', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, '', [1, 2]),