Test inline styles with non-decorated formatter
This commit is contained in:
parent
4597768377
commit
8530e05574
@ -196,6 +196,9 @@ class OutputFormatterTest extends TestCase
|
|||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
'some question', $formatter->format('<question>some question</question>')
|
'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);
|
$formatter->setDecorated(true);
|
||||||
|
|
||||||
@ -211,6 +214,9 @@ class OutputFormatterTest extends TestCase
|
|||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
"\033[30;46msome question\033[39;49m", $formatter->format('<question>some question</question>')
|
"\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()
|
public function testContentWithLineBreaks()
|
||||||
|
Reference in New Issue
Block a user