You are here

public function InputTest::testConstructor in Zircon Profile 8

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

File

vendor/symfony/console/Tests/Input/InputTest.php, line 21

Class

InputTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testConstructor() {
  $input = new ArrayInput(array(
    'name' => 'foo',
  ), new InputDefinition(array(
    new InputArgument('name'),
  )));
  $this
    ->assertEquals('foo', $input
    ->getArgument('name'), '->__construct() takes a InputDefinition as an argument');
}