You are here

public function OutputFormatterTest::testInlineStyle in Zircon Profile 8.0

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

File

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

Class

OutputFormatterTest

Namespace

Symfony\Component\Console\Tests\Formatter

Code

public function testInlineStyle() {
  $formatter = new OutputFormatter(true);
  $this
    ->assertEquals("\33[34;41msome text\33[39;49m", $formatter
    ->format('<fg=blue;bg=red>some text</>'));
  $this
    ->assertEquals("\33[34;41msome text\33[39;49m", $formatter
    ->format('<fg=blue;bg=red>some text</fg=blue;bg=red>'));
}