public function FormatterHelperTest::testFormatBlockWithDiacriticLetters in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Helper/FormatterHelperTest.php \Symfony\Component\Console\Tests\Helper\FormatterHelperTest::testFormatBlockWithDiacriticLetters()
File
- vendor/
symfony/ console/ Tests/ Helper/ FormatterHelperTest.php, line 55
Class
Namespace
Symfony\Component\Console\Tests\HelperCode
public function testFormatBlockWithDiacriticLetters() {
if (!function_exists('mb_detect_encoding')) {
$this
->markTestSkipped('This test requires mbstring to work.');
}
$formatter = new FormatterHelper();
$this
->assertEquals('<error> </error>' . "\n" . '<error> Du texte à afficher </error>' . "\n" . '<error> </error>', $formatter
->formatBlock('Du texte à afficher', 'error', true), '::formatBlock() formats a message in a block');
}