Test inline styles with non-decorated formatter

This commit is contained in:
Julien Falque 2017-02-28 19:03:12 +01:00
parent 4597768377
commit 8530e05574
No known key found for this signature in database
GPG Key ID: 6B13BB4B40DBD0E9

View File

@ -196,6 +196,9 @@ class OutputFormatterTest extends TestCase
$this->assertEquals(
'some question', $formatter->format('<question>some question</question>')
);
$this->assertEquals(
'some text with inline style', $formatter->format('<fg=red>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('<question>some question</question>')
);
$this->assertEquals(
"\033[31msome text with inline style\033[39m", $formatter->format('<fg=red>some text with inline style</>')
);
}
public function testContentWithLineBreaks()