You are here

public function OutputFormatterTest::testNestedStyles 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::testNestedStyles()

File

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

Class

OutputFormatterTest

Namespace

Symfony\Component\Console\Tests\Formatter

Code

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