You are here

public function InputTest::testValidate 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::testValidate()

File

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

Class

InputTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testValidate() {
  $input = new ArrayInput(array(
    'name' => 'foo',
  ));
  $input
    ->bind(new InputDefinition(array(
    new InputArgument('name', InputArgument::REQUIRED),
  )));
  $this
    ->assertNull($input
    ->validate());
}