From 8530e055742f042c72a6000bfc5adae5b0fe1676 Mon Sep 17 00:00:00 2001 From: Julien Falque Date: Tue, 28 Feb 2017 19:03:12 +0100 Subject: [PATCH] Test inline styles with non-decorated formatter --- .../Console/Tests/Formatter/OutputFormatterTest.php | 6 ++++++ 1 file changed, 6 insertions(+) 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()