public function ArgvInputTest::provideInvalidInput in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Tests/Input/ArgvInputTest.php \Symfony\Component\Console\Tests\Input\ArgvInputTest::provideInvalidInput()
File
- vendor/
symfony/ console/ Tests/ Input/ ArgvInputTest.php, line 160
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function provideInvalidInput() {
return array(
array(
array(
'cli.php',
'--foo',
),
new InputDefinition(array(
new InputOption('foo', 'f', InputOption::VALUE_REQUIRED),
)),
'The "--foo" option requires a value.',
),
array(
array(
'cli.php',
'-f',
),
new InputDefinition(array(
new InputOption('foo', 'f', InputOption::VALUE_REQUIRED),
)),
'The "--foo" option requires a value.',
),
array(
array(
'cli.php',
'-ffoo',
),
new InputDefinition(array(
new InputOption('foo', 'f', InputOption::VALUE_NONE),
)),
'The "-o" option does not exist.',
),
array(
array(
'cli.php',
'--foo=bar',
),
new InputDefinition(array(
new InputOption('foo', 'f', InputOption::VALUE_NONE),
)),
'The "--foo" option does not accept a value.',
),
array(
array(
'cli.php',
'foo',
'bar',
),
new InputDefinition(),
'Too many arguments.',
),
array(
array(
'cli.php',
'--foo',
),
new InputDefinition(),
'The "--foo" option does not exist.',
),
array(
array(
'cli.php',
'-f',
),
new InputDefinition(),
'The "-f" option does not exist.',
),
array(
array(
'cli.php',
'-1',
),
new InputDefinition(array(
new InputArgument('number'),
)),
'The "-1" option does not exist.',
),
);
}