public function AbstractDescriptorTest::testDescribeApplication in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php \Symfony\Component\Console\Tests\Descriptor\AbstractDescriptorTest::testDescribeApplication()
@dataProvider getDescribeApplicationTestData
File
- vendor/
symfony/ console/ Tests/ Descriptor/ AbstractDescriptorTest.php, line 48
Class
Namespace
Symfony\Component\Console\Tests\DescriptorCode
public function testDescribeApplication(Application $application, $expectedDescription) {
// 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.
foreach ($application
->all() as $command) {
$command
->setHelp(str_replace('%command.full_name%', 'app/console %command.name%', $command
->getHelp()));
}
$this
->assertDescription($expectedDescription, $application);
}