You are here

public function FormatterHelperTest::testFormatBlockLGEscaping in Zircon Profile 8

Same name and namespace in other branches
  1. 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

FormatterHelperTest

Namespace

Symfony\Component\Console\Tests\Helper

Code

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');
}