diff --git a/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php b/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php
index dc7b0358de..866c31a443 100644
--- a/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php
+++ b/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php
@@ -196,6 +196,9 @@ class OutputFormatterTest extends TestCase
$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 @@ class OutputFormatterTest extends TestCase
$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()