You are here

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

File

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

Class

CommandTest

Namespace

Symfony\Component\Console\Tests\Command

Code

public function testGetHelper() {
  $application = new Application();
  $command = new \TestCommand();
  $command
    ->setApplication($application);
  $formatterHelper = new FormatterHelper();
  $this
    ->assertEquals($formatterHelper
    ->getName(), $command
    ->getHelper('formatter')
    ->getName(), '->getHelper() returns the correct helper');
}