You are here

public function InputArgumentTest::testInvalidModes in Zircon Profile 8

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

@dataProvider provideInvalidModes

File

vendor/symfony/console/Tests/Input/InputArgumentTest.php, line 42

Class

InputArgumentTest

Namespace

Symfony\Component\Console\Tests\Input

Code

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