Skip to content

Commit c7e324a

Browse files
committed
[Console] Added test for non style tag formatting.
1 parent 842b599 commit c7e324a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,15 @@ public function testInlineStyle()
115115
$this->assertEquals("\033[34;41msome text\033[0m", $formatter->format('<fg=blue;bg=red>some text</fg=blue;bg=red>'));
116116
}
117117

118+
/**
119+
* @group nst
120+
*/
121+
public function testNonStyleTag()
122+
{
123+
$formatter = new OutputFormatter(true);
124+
$this->assertEquals("\033[32msome \033[0m\033[32m<tag> styled\033[0m", $formatter->format('<info>some <tag> styled</info>'));
125+
}
126+
118127
public function testNotDecoratedFormatter()
119128
{
120129
$formatter = new OutputFormatter(false);

0 commit comments

Comments
 (0)