You are here

public function OutputTest::testWriteWithDecorationTurnedOff in Zircon Profile 8

Same name and namespace in other branches
  1. 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

OutputTest

Namespace

Symfony\Component\Console\Tests\Output

Code

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');
}