You are here

public function InputOptionTest::testInvalidModes in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Tests/Input/InputOptionTest.php \Symfony\Component\Console\Tests\Input\InputOptionTest::testInvalidModes()

@dataProvider provideInvalidModes

File

vendor/symfony/console/Tests/Input/InputOptionTest.php, line 78

Class

InputOptionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testInvalidModes($mode) {
  $this
    ->setExpectedException('InvalidArgumentException', sprintf('Option mode "%s" is not valid.', $mode));
  new InputOption('foo', 'f', $mode);
}