You are here

public function PhpTransliterationTest::providerTestPhpTransliterationRemoveDiacritics in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Component/Transliteration/PhpTransliterationTest.php \Drupal\Tests\Component\Transliteration\PhpTransliterationTest::providerTestPhpTransliterationRemoveDiacritics()

Provides data for self::testRemoveDiacritics().

Return value

array An array of arrays, each containing the parameters for self::testRemoveDiacritics().

File

core/tests/Drupal/Tests/Component/Transliteration/PhpTransliterationTest.php, line 47
Contains \Drupal\Tests\Component\Transliteration\PhpTransliterationTest.

Class

PhpTransliterationTest
Tests Transliteration component functionality.

Namespace

Drupal\Tests\Component\Transliteration

Code

public function providerTestPhpTransliterationRemoveDiacritics() {
  return array(
    // Test all characters in the Unicode range 0x00bf to 0x017f.
    array(
      'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ',
      'AAAAAAÆCEEEEIIII',
    ),
    array(
      'ÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß',
      'ÐNOOOOO×OUUUUYÞß',
    ),
    array(
      'àáâãäåæçèéêëìíîï',
      'aaaaaaæceeeeiiii',
    ),
    array(
      'ðñòóôõö÷øùúûüýþÿ',
      'ðnooooo÷ouuuuyþy',
    ),
    array(
      'ĀāĂ㥹ĆćĈĉĊċČčĎď',
      'AaAaAaCcCcCcCcDd',
    ),
    array(
      'ĐđĒēĔĕĖėĘęĚěĜĝĞğ',
      'DdEeEeEeEeEeGgGg',
    ),
    array(
      'ĠġĢģĤĥĦħĨĩĪīĬĭĮį',
      'GgGgHhHhIiIiIiIi',
    ),
    array(
      'İıIJijĴĵĶķĸĹĺĻļĽľĿ',
      'IiIJijJjKkĸLlLlLlL',
    ),
    array(
      'ŀŁłŃńŅņŇňʼnŊŋŌōŎŏ',
      'lLlNnNnNnʼnŊŋOoOo',
    ),
    array(
      'ŐőŒœŔŕŖŗŘřŚśŜŝŞş',
      'OoŒœRrRrRrSsSsSs',
    ),
    array(
      'ŠšŢţŤťŦŧŨũŪūŬŭŮů',
      'SsTtTtTtUuUuUuUu',
    ),
    array(
      'ŰűŲųŴŵŶŷŸŹźŻżŽž',
      'UuUuWwYyYZzZzZz',
    ),
    // Test all characters in the Unicode range 0x01CD to 0x024F.
    array(
      'ǍǎǏ',
      'AaI',
    ),
    array(
      'ǐǑǒǓǔǕǖǗǘǙǚǛǜǝǞǟ',
      'iOoUuUuUuUuUuǝAa',
    ),
    array(
      'ǠǡǢǣǤǥǦǧǨǩǪǫǬǭǮǯ',
      'AaǢǣGgGgKkOoOoǮǯ',
    ),
    array(
      'ǰDZDzdzǴǵǶǷǸǹǺǻǼǽǾǿ',
      'jDZDzdzGgǶǷNnAaǼǽOo',
    ),
    array(
      'ȀȁȂȃȄȅȆȇȈȉȊȋȌȍȎȏ',
      'AaAaEeEeIiIiOoOo',
    ),
    array(
      'ȐȑȒȓȔȕȖȗȘșȚțȜȝȞȟ',
      'RrRrUuUuSsTtȜȝHh',
    ),
    array(
      'ȠȡȢȣȤȥȦȧȨȩȪȫȬȭȮȯ',
      'ȠȡȢȣZzAaEeOoOoOo',
    ),
    array(
      'ȰȱȲȳȴȵȶȷȸȹȺȻȼȽȾȿ',
      'OoYylntjȸȹACcLTs',
    ),
    array(
      'ɀɁɂɃɄɅɆɇɈɉɊɋɌɍɎɏ',
      'zɁɂBUɅEeJjQqRrYy',
    ),
  );
}