You are here

public function InputDefinitionTest::testGetInvalidOption in Zircon Profile 8

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

@expectedException \InvalidArgumentException @expectedExceptionMessage The "--bar" option does not exist.

File

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

Class

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testGetInvalidOption() {
  $this
    ->initializeOptions();
  $definition = new InputDefinition(array(
    $this->foo,
  ));
  $definition
    ->getOption('bar');
}