You are here

public function InputDefinitionTest::testHasOption 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::testHasOption()

File

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

Class

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testHasOption() {
  $this
    ->initializeOptions();
  $definition = new InputDefinition(array(
    $this->foo,
  ));
  $this
    ->assertTrue($definition
    ->hasOption('foo'), '->hasOption() returns true if a InputOption exists for the given name');
  $this
    ->assertFalse($definition
    ->hasOption('bar'), '->hasOption() returns false if a InputOption exists for the given name');
}