public function OutputFormatterTest::testStyleEscaping 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::testStyleEscaping()
File
- vendor/
symfony/ console/ Tests/ Formatter/ OutputFormatterTest.php, line 96
Class
Namespace
Symfony\Component\Console\Tests\FormatterCode
public function testStyleEscaping() {
$formatter = new OutputFormatter(true);
$this
->assertEquals("(\33[32mz>=2.0,<a2.3\33[39m)", $formatter
->format('(<info>' . $formatter
->escape('z>=2.0,<a2.3') . '</info>)'));
$this
->assertEquals("\33[32m<error>some error</error>\33[39m", $formatter
->format('<info>' . $formatter
->escape('<error>some error</error>') . '</info>'));
}