protected function ApplicationTest::ensureStaticCommandHelp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/ApplicationTest.php \Symfony\Component\Console\Tests\ApplicationTest::ensureStaticCommandHelp()
Replaces the dynamic placeholders of the command help text with a static version. The placeholder %command.full_name% includes the script path that is not predictable and can not be tested against.
3 calls to ApplicationTest::ensureStaticCommandHelp()
- ApplicationTest::testLegacyAsText in vendor/
symfony/ console/ Tests/ ApplicationTest.php - @group legacy
- ApplicationTest::testLegacyAsXml in vendor/
symfony/ console/ Tests/ ApplicationTest.php - @group legacy
- ApplicationTest::testRun in vendor/
symfony/ console/ Tests/ ApplicationTest.php
File
- vendor/
symfony/ console/ Tests/ ApplicationTest.php, line 62
Class
Namespace
Symfony\Component\Console\TestsCode
protected function ensureStaticCommandHelp(Application $application) {
foreach ($application
->all() as $command) {
$command
->setHelp(str_replace('%command.full_name%', 'app/console %command.name%', $command
->getHelp()));
}
}