You are here

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

File

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

Class

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

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');
}