public function OutputFormatterTest::testContentWithLineBreaks in Zircon Profile 8        
                          
                  
                        Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Formatter/OutputFormatterTest.php \Symfony\Component\Console\Tests\Formatter\OutputFormatterTest::testContentWithLineBreaks()
File
 
   - vendor/symfony/console/Tests/Formatter/OutputFormatterTest.php, line 215
Class
  
  - OutputFormatterTest 
Namespace
  Symfony\Component\Console\Tests\Formatter
Code
public function testContentWithLineBreaks() {
  $formatter = new OutputFormatter(true);
  $this
    ->assertEquals(<<<EOF
\33[32m
some text\33[39m
EOF
, $formatter
    ->format(<<<EOF
<info>
some text</info>
EOF
));
  $this
    ->assertEquals(<<<EOF
\33[32msome text
\33[39m
EOF
, $formatter
    ->format(<<<EOF
<info>some text
</info>
EOF
));
  $this
    ->assertEquals(<<<EOF
\33[32m
some text
\33[39m
EOF
, $formatter
    ->format(<<<EOF
<info>
some text
</info>
EOF
));
  $this
    ->assertEquals(<<<EOF
\33[32m
some text
more text
\33[39m
EOF
, $formatter
    ->format(<<<EOF
<info>
some text
more text
</info>
EOF
));
}