You are here

public function ArrayInputTest::testParseArguments in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Tests/Input/ArrayInputTest.php \Symfony\Component\Console\Tests\Input\ArrayInputTest::testParseArguments()

File

vendor/symfony/console/Tests/Input/ArrayInputTest.php, line 50

Class

ArrayInputTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testParseArguments() {
  $input = new ArrayInput(array(
    'name' => 'foo',
  ), new InputDefinition(array(
    new InputArgument('name'),
  )));
  $this
    ->assertEquals(array(
    'name' => 'foo',
  ), $input
    ->getArguments(), '->parse() parses required arguments');
}