You are here

public function InputDefinitionTest::testSetArguments in Zircon Profile 8.0

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

File

vendor/symfony/console/Tests/Input/InputDefinitionTest.php, line 51

Class

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testSetArguments() {
  $this
    ->initializeArguments();
  $definition = new InputDefinition();
  $definition
    ->setArguments(array(
    $this->foo,
  ));
  $this
    ->assertEquals(array(
    'foo' => $this->foo,
  ), $definition
    ->getArguments(), '->setArguments() sets the array of InputArgument objects');
  $definition
    ->setArguments(array(
    $this->bar,
  ));
  $this
    ->assertEquals(array(
    'bar' => $this->bar,
  ), $definition
    ->getArguments(), '->setArguments() clears all InputArgument objects');
}