You are here

public function ApplicationTest::testAddCommandWithEmptyConstructor in Zircon Profile 8

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

@expectedException \LogicException @expectedExceptionMessage Command class "Foo5Command" is not correctly initialized. You probably forgot to call the parent constructor.

File

vendor/symfony/console/Tests/ApplicationTest.php, line 138

Class

ApplicationTest

Namespace

Symfony\Component\Console\Tests

Code

public function testAddCommandWithEmptyConstructor() {
  $application = new Application();
  $application
    ->add(new \Foo5Command());
}