public function InputDefinitionTest::testHasOption in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\Console\Tests\InputCode
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');
}