public function FormatterHelperTest::testFormatBlockWithDoubleWidthDiacriticLetters 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::testFormatBlockWithDoubleWidthDiacriticLetters()
File
- vendor/
symfony/ console/ Tests/ Helper/ FormatterHelperTest.php, line 72
Class
Namespace
Symfony\Component\Console\Tests\HelperCode
public function testFormatBlockWithDoubleWidthDiacriticLetters() {
if (!extension_loaded('mbstring')) {
$this
->markTestSkipped('This test requires mbstring to work.');
}
$formatter = new FormatterHelper();
$this
->assertEquals('<error> </error>' . "\n" . '<error> 表示するテキスト </error>' . "\n" . '<error> </error>', $formatter
->formatBlock('表示するテキスト', 'error', true), '::formatBlock() formats a message in a block');
}