You are here

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

@expectedException \RuntimeException @expectedExceptionMessage Not enough arguments.

File

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

Class

InputTest

Namespace

Symfony\Component\Console\Tests\Input

Code

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