You are here

public function InputArgumentTest::testInvalidModes in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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);
}