You are here

public function OutputFormatterTest::testFormatLongString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Formatter/OutputFormatterTest.php \Symfony\Component\Console\Tests\Formatter\OutputFormatterTest::testFormatLongString()

File

vendor/symfony/console/Tests/Formatter/OutputFormatterTest.php, line 162

Class

OutputFormatterTest

Namespace

Symfony\Component\Console\Tests\Formatter

Code

public function testFormatLongString() {
  $formatter = new OutputFormatter(true);
  $long = str_repeat('\\', 14000);
  $this
    ->assertEquals("\33[37;41msome error\33[39;49m" . $long, $formatter
    ->format('<error>some error</error>' . $long));
}