You are here

public function OutputFormatterTest::testDeepNestedStyles in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Formatter/OutputFormatterTest.php \Symfony\Component\Console\Tests\Formatter\OutputFormatterTest::testDeepNestedStyles()

File

vendor/symfony/console/Tests/Formatter/OutputFormatterTest.php, line 111

Class

OutputFormatterTest

Namespace

Symfony\Component\Console\Tests\Formatter

Code

public function testDeepNestedStyles() {
  $formatter = new OutputFormatter(true);
  $this
    ->assertEquals("\33[37;41merror\33[39;49m\33[32minfo\33[39m\33[33mcomment\33[39m\33[37;41merror\33[39;49m", $formatter
    ->format('<error>error<info>info<comment>comment</info>error</error>'));
}