public function ApplicationTest::testSilentHelp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/ApplicationTest.php \Symfony\Component\Console\Tests\ApplicationTest::testSilentHelp()
File
- vendor/
symfony/ console/ Tests/ ApplicationTest.php, line 166
Class
Namespace
Symfony\Component\Console\TestsCode
public function testSilentHelp() {
$application = new Application();
$application
->setAutoExit(false);
$application
->setCatchExceptions(false);
$tester = new ApplicationTester($application);
$tester
->run(array(
'-h' => true,
'-q' => true,
), array(
'decorated' => false,
));
$this
->assertEmpty($tester
->getDisplay(true));
}