You are here

public function InputDefinitionTest::testSetOptionsClearsOptions in Zircon Profile 8.0

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

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

File

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

Class

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testSetOptionsClearsOptions() {
  $this
    ->initializeOptions();
  $definition = new InputDefinition(array(
    $this->foo,
  ));
  $definition
    ->setOptions(array(
    $this->bar,
  ));
  $definition
    ->getOptionForShortcut('f');
}