You are here

public function CommandTest::testGetProcessedHelp in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Tests/Command/CommandTest.php \Symfony\Component\Console\Tests\Command\CommandTest::testGetProcessedHelp()

File

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

Class

CommandTest

Namespace

Symfony\Component\Console\Tests\Command

Code

public function testGetProcessedHelp() {
  $command = new \TestCommand();
  $command
    ->setHelp('The %command.name% command does... Example: php %command.full_name%.');
  $this
    ->assertContains('The namespace:name command does...', $command
    ->getProcessedHelp(), '->getProcessedHelp() replaces %command.name% correctly');
  $this
    ->assertNotContains('%command.full_name%', $command
    ->getProcessedHelp(), '->getProcessedHelp() replaces %command.full_name%');
}