diff --git a/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php b/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php index dc7b0358dea8..866c31a44375 100644 --- a/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php +++ b/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php @@ -196,6 +196,9 @@ public function testNotDecoratedFormatter() $this->assertEquals( 'some question', $formatter->format('some question') ); + $this->assertEquals( + 'some text with inline style', $formatter->format('some text with inline style') + ); $formatter->setDecorated(true); @@ -211,6 +214,9 @@ public function testNotDecoratedFormatter() $this->assertEquals( "\033[30;46msome question\033[39;49m", $formatter->format('some question') ); + $this->assertEquals( + "\033[31msome text with inline style\033[39m", $formatter->format('some text with inline style') + ); } public function testContentWithLineBreaks()