public function ArgvInputTest::provideOptions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Input/ArgvInputTest.php \Symfony\Component\Console\Tests\Input\ArgvInputTest::provideOptions()
File
- vendor/
symfony/ console/ Tests/ Input/ ArgvInputTest.php, line 53
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function provideOptions() {
return array(
array(
array(
'cli.php',
'--foo',
),
array(
new InputOption('foo'),
),
array(
'foo' => true,
),
'->parse() parses long options without a value',
),
array(
array(
'cli.php',
'--foo=bar',
),
array(
new InputOption('foo', 'f', InputOption::VALUE_REQUIRED),
),
array(
'foo' => 'bar',
),
'->parse() parses long options with a required value (with a = separator)',
),
array(
array(
'cli.php',
'--foo',
'bar',
),
array(
new InputOption('foo', 'f', InputOption::VALUE_REQUIRED),
),
array(
'foo' => 'bar',
),
'->parse() parses long options with a required value (with a space separator)',
),
array(
array(
'cli.php',
'-f',
),
array(
new InputOption('foo', 'f'),
),
array(
'foo' => true,
),
'->parse() parses short options without a value',
),
array(
array(
'cli.php',
'-fbar',
),
array(
new InputOption('foo', 'f', InputOption::VALUE_REQUIRED),
),
array(
'foo' => 'bar',
),
'->parse() parses short options with a required value (with no separator)',
),
array(
array(
'cli.php',
'-f',
'bar',
),
array(
new InputOption('foo', 'f', InputOption::VALUE_REQUIRED),
),
array(
'foo' => 'bar',
),
'->parse() parses short options with a required value (with a space separator)',
),
array(
array(
'cli.php',
'-f',
'',
),
array(
new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL),
),
array(
'foo' => '',
),
'->parse() parses short options with an optional empty value',
),
array(
array(
'cli.php',
'-f',
'',
'foo',
),
array(
new InputArgument('name'),
new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL),
),
array(
'foo' => '',
),
'->parse() parses short options with an optional empty value followed by an argument',
),
array(
array(
'cli.php',
'-f',
'',
'-b',
),
array(
new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL),
new InputOption('bar', 'b'),
),
array(
'foo' => '',
'bar' => true,
),
'->parse() parses short options with an optional empty value followed by an option',
),
array(
array(
'cli.php',
'-f',
'-b',
'foo',
),
array(
new InputArgument('name'),
new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL),
new InputOption('bar', 'b'),
),
array(
'foo' => null,
'bar' => true,
),
'->parse() parses short options with an optional value which is not present',
),
array(
array(
'cli.php',
'-fb',
),
array(
new InputOption('foo', 'f'),
new InputOption('bar', 'b'),
),
array(
'foo' => true,
'bar' => true,
),
'->parse() parses short options when they are aggregated as a single one',
),
array(
array(
'cli.php',
'-fb',
'bar',
),
array(
new InputOption('foo', 'f'),
new InputOption('bar', 'b', InputOption::VALUE_REQUIRED),
),
array(
'foo' => true,
'bar' => 'bar',
),
'->parse() parses short options when they are aggregated as a single one and the last one has a required value',
),
array(
array(
'cli.php',
'-fb',
'bar',
),
array(
new InputOption('foo', 'f'),
new InputOption('bar', 'b', InputOption::VALUE_OPTIONAL),
),
array(
'foo' => true,
'bar' => 'bar',
),
'->parse() parses short options when they are aggregated as a single one and the last one has an optional value',
),
array(
array(
'cli.php',
'-fbbar',
),
array(
new InputOption('foo', 'f'),
new InputOption('bar', 'b', InputOption::VALUE_OPTIONAL),
),
array(
'foo' => true,
'bar' => 'bar',
),
'->parse() parses short options when they are aggregated as a single one and the last one has an optional value with no separator',
),
array(
array(
'cli.php',
'-fbbar',
),
array(
new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL),
new InputOption('bar', 'b', InputOption::VALUE_OPTIONAL),
),
array(
'foo' => 'bbar',
'bar' => null,
),
'->parse() parses short options when they are aggregated as a single one and one of them takes a value',
),
);
}