You are here

public function ArgvInputTest::testParseEmptyStringArgument in Zircon Profile 8.0

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

ArgvInputTest

Namespace

Symfony\Component\Console\Tests\Input

Code

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