public function ArgvInputTest::testParseSingleDashAsArgument 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::testParseSingleDashAsArgument()
File
- vendor/
symfony/ console/ Tests/ Input/ ArgvInputTest.php, line 311
Class
Namespace
Symfony\Component\Console\Tests\InputCode
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');
}