From c7e324af90d49475b2dc115f1a05b14ca18be7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Simon?= Date: Mon, 6 Aug 2012 21:21:07 +0200 Subject: [PATCH] [Console] Added test for non style tag formatting. --- .../Console/Tests/Formatter/OutputFormatterTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php b/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php index 6a5ffdaabd..aac5cbe29a 100644 --- a/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php +++ b/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php @@ -115,6 +115,15 @@ class FormatterStyleTest extends \PHPUnit_Framework_TestCase $this->assertEquals("\033[34;41msome text\033[0m", $formatter->format('some text')); } + /** + * @group nst + */ + public function testNonStyleTag() + { + $formatter = new OutputFormatter(true); + $this->assertEquals("\033[32msome \033[0m\033[32m styled\033[0m", $formatter->format('some styled')); + } + public function testNotDecoratedFormatter() { $formatter = new OutputFormatter(false);