You are here

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

File

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

Class

CommandTest

Namespace

Symfony\Component\Console\Tests\Command

Code

public function testSetApplication() {
  $application = new Application();
  $command = new \TestCommand();
  $command
    ->setApplication($application);
  $this
    ->assertEquals($application, $command
    ->getApplication(), '->setApplication() sets the current application');
}