public function OutputTest::testWriteWithDecorationTurnedOff in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Output/OutputTest.php \Symfony\Component\Console\Tests\Output\OutputTest::testWriteWithDecorationTurnedOff()
File
- vendor/
symfony/ console/ Tests/ Output/ OutputTest.php, line 101
Class
Namespace
Symfony\Component\Console\Tests\OutputCode
public function testWriteWithDecorationTurnedOff() {
$output = new TestOutput();
$output
->setDecorated(false);
$output
->writeln('<info>foo</info>');
$this
->assertEquals("foo\n", $output->output, '->writeln() strips decoration tags if decoration is set to false');
}