Exemple #1
0
 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%');
 }