$this->
assertEquals( "\033[33mSymfony\\Component\\Console does work very well!\033[39m",
$formatter->
format('<comment>Symfony\Component\Console does work very well!</comment>'
) );
} public function testBundledStyles() { $formatter =
new OutputFormatter(true
);
$this->
assertTrue($formatter->
hasStyle('error'
));
$this->
assertTrue($formatter->
hasStyle('info'
));
$this->
assertTrue($formatter->
hasStyle('comment'
));
$this->
assertTrue($formatter->
hasStyle('question'
));
$this->
assertEquals( "\033[37;41msome error\033[39;49m",
$formatter->
format('<error>some error</error>'
) );
$this->
assertEquals( "\033[32msome info\033[39m",
$formatter->
format('<info>some info</info>'
) );