public function FormatterHelperTest::testFormatBlockLGEscaping in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Helper/FormatterHelperTest.php \Symfony\Component\Console\Tests\Helper\FormatterHelperTest::testFormatBlockLGEscaping()
File
- vendor/
symfony/ console/ Tests/ Helper/ FormatterHelperTest.php, line 87
Class
Namespace
Symfony\Component\Console\Tests\HelperCode
public function testFormatBlockLGEscaping() {
$formatter = new FormatterHelper();
$this
->assertEquals('<error> </error>' . "\n" . '<error> \\<info>some info\\</info> </error>' . "\n" . '<error> </error>', $formatter
->formatBlock('<info>some info</info>', 'error', true), '::formatBlock() escapes \'<\' chars');
}