You are here

public function CommandTest::testRunWithInvalidOption in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Command/CommandTest.php \Symfony\Component\Console\Tests\Command\CommandTest::testRunWithInvalidOption()

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

File

vendor/symfony/console/Tests/Command/CommandTest.php, line 249

Class

CommandTest

Namespace

Symfony\Component\Console\Tests\Command

Code

public function testRunWithInvalidOption() {
  $command = new \TestCommand();
  $tester = new CommandTester($command);
  $tester
    ->execute(array(
    '--bar' => true,
  ));
}