12 namespace Symfony\Component\Console\Tests\Helper;
23 '<info>[cli]</info> Some text to display',
24 $formatter->formatSection(
'cli',
'Some text to display'),
25 '::formatSection() formats a message in a section'
34 '<error> Some text to display </error>',
35 $formatter->formatBlock(
'Some text to display',
'error'),
36 '::formatBlock() formats a message in a block'
40 '<error> Some text to display </error>'.
"\n".
41 '<error> foo bar </error>',
42 $formatter->formatBlock(array(
'Some text to display',
'foo bar'),
'error'),
43 '::formatBlock() formats a message in a block'
47 '<error> </error>'.
"\n".
48 '<error> Some text to display </error>'.
"\n".
50 $formatter->formatBlock(
'Some text to display',
'error',
true),
51 '::formatBlock() formats a message in a block'
57 if (!function_exists(
'mb_detect_encoding')) {
58 $this->markTestSkipped(
'This test requires mbstring to work.');
64 '<error> </error>'.
"\n".
65 '<error> Du texte à afficher </error>'.
"\n".
67 $formatter->formatBlock(
'Du texte à afficher',
'error',
true),
68 '::formatBlock() formats a message in a block'
74 if (!extension_loaded(
'mbstring')) {
75 $this->markTestSkipped(
'This test requires mbstring to work.');
79 '<error> </error>'.
"\n".
80 '<error> 表示するテキスト </error>'.
"\n".
82 $formatter->formatBlock(
'表示するテキスト',
'error',
true),
83 '::formatBlock() formats a message in a block'
92 '<error> </error>'.
"\n".
93 '<error> <info>some info</info> </error>'.
"\n".
95 $formatter->formatBlock(
'<info>some info</info>',
'error',
true),
96 '::formatBlock() escapes \'<\' chars'