You are here

public function ArgvInputTest::testParseSingleDashAsArgument in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Input/ArgvInputTest.php \Symfony\Component\Console\Tests\Input\ArgvInputTest::testParseSingleDashAsArgument()

File

vendor/symfony/console/Tests/Input/ArgvInputTest.php, line 311

Class

ArgvInputTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testParseSingleDashAsArgument() {
  $input = new ArgvInput(array(
    'cli.php',
    '-',
  ));
  $input
    ->bind(new InputDefinition(array(
    new InputArgument('file'),
  )));
  $this
    ->assertEquals(array(
    'file' => '-',
  ), $input
    ->getArguments(), '->parse() parses single dash as an argument');
}