public function InputDefinitionTest::testHasArgument in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Tests/Input/InputDefinitionTest.php \Symfony\Component\Console\Tests\Input\InputDefinitionTest::testHasArgument()
File
- vendor/
symfony/ console/ Tests/ Input/ InputDefinitionTest.php, line 146
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function testHasArgument() {
$this
->initializeArguments();
$definition = new InputDefinition();
$definition
->addArguments(array(
$this->foo,
));
$this
->assertTrue($definition
->hasArgument('foo'), '->hasArgument() returns true if a InputArgument exists for the given name');
$this
->assertFalse($definition
->hasArgument('bar'), '->hasArgument() returns false if a InputArgument exists for the given name');
}