You are here

public function CommandTest::testInvalidCommandNames 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::testInvalidCommandNames()

@dataProvider provideInvalidCommandNames

File

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

Class

CommandTest

Namespace

Symfony\Component\Console\Tests\Command

Code

public function testInvalidCommandNames($name) {
  $this
    ->setExpectedException('InvalidArgumentException', sprintf('Command name "%s" is invalid.', $name));
  $command = new \TestCommand();
  $command
    ->setName($name);
}