public function OutputFormatterTest::testInlineStyle in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
Namespace
Symfony\Component\Console\Tests\FormatterCode
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>'));
}