You are here

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

File

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

Class

CommandTest

Namespace

Symfony\Component\Console\Tests\Command

Code

public function testConstructor() {
  $command = new Command('foo:bar');
  $this
    ->assertEquals('foo:bar', $command
    ->getName(), '__construct() takes the command name as its first argument');
}