public function ArgvInputTest::testParseEmptyStringArgument 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::testParseEmptyStringArgument()
File
- vendor/
symfony/ console/ Tests/ Input/ ArgvInputTest.php, line 249
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function testParseEmptyStringArgument() {
$input = new ArgvInput(array(
'cli.php',
'-f',
'bar',
'',
));
$input
->bind(new InputDefinition(array(
new InputArgument('empty'),
new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL),
)));
$this
->assertEquals(array(
'empty' => '',
), $input
->getArguments(), '->parse() parses empty string arguments');
}