You are here

public function FormatterHelperTest::testFormatBlockWithDoubleWidthDiacriticLetters in Zircon Profile 8

Same name and namespace in other branches
  1. 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

FormatterHelperTest

Namespace

Symfony\Component\Console\Tests\Helper

Code

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');
}