public function ApplicationTest::testAddingSingleHelperSetOverwritesDefaultValues in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/ApplicationTest.php \Symfony\Component\Console\Tests\ApplicationTest::testAddingSingleHelperSetOverwritesDefaultValues()
File
- vendor/
symfony/ console/ Tests/ ApplicationTest.php, line 776
Class
Namespace
Symfony\Component\Console\TestsCode
public function testAddingSingleHelperSetOverwritesDefaultValues() {
$application = new Application();
$application
->setAutoExit(false);
$application
->setCatchExceptions(false);
$application
->setHelperSet(new HelperSet(array(
new FormatterHelper(),
)));
$helperSet = $application
->getHelperSet();
$this
->assertTrue($helperSet
->has('formatter'));
// no other default helper set should be returned
$this
->assertFalse($helperSet
->has('dialog'));
$this
->assertFalse($helperSet
->has('progress'));
}