You are here

public function ArrayInputTest::provideInvalidInput 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::provideInvalidInput()

File

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

Class

ArrayInputTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function provideInvalidInput() {
  return array(
    array(
      array(
        'foo' => 'foo',
      ),
      new InputDefinition(array(
        new InputArgument('name'),
      )),
      'The "foo" argument does not exist.',
    ),
    array(
      array(
        '--foo' => null,
      ),
      new InputDefinition(array(
        new InputOption('foo', 'f', InputOption::VALUE_REQUIRED),
      )),
      'The "--foo" option requires a value.',
    ),
    array(
      array(
        '--foo' => 'foo',
      ),
      new InputDefinition(),
      'The "--foo" option does not exist.',
    ),
    array(
      array(
        '-o' => 'foo',
      ),
      new InputDefinition(),
      'The "-o" option does not exist.',
    ),
  );
}