public function OutputTest::testWriteDecoratedMessage in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Tests/Output/OutputTest.php \Symfony\Component\Console\Tests\Output\OutputTest::testWriteDecoratedMessage()
File
- vendor/
symfony/ console/ Tests/ Output/ OutputTest.php, line 109
Class
Namespace
Symfony\Component\Console\Tests\OutputCode
public function testWriteDecoratedMessage() {
$fooStyle = new OutputFormatterStyle('yellow', 'red', array(
'blink',
));
$output = new TestOutput();
$output
->getFormatter()
->setStyle('FOO', $fooStyle);
$output
->setDecorated(true);
$output
->writeln('<foo>foo</foo>');
$this
->assertEquals("\33[33;41;5mfoo\33[39;49;25m\n", $output->output, '->writeln() decorates the output');
}