protected function NameUnicodeExtrasTest::languageStrings in Name Field 8
Helper function to provide data for the tests.
Return value
array A keyed array of test data in misc languages.
1 call to NameUnicodeExtrasTest::languageStrings()
- NameUnicodeExtrasTest::patternDataProvider in tests/
src/ Unit/ NameUnicodeExtrasTest.php - Convert names() to PHPUnit compatible format.
File
- tests/
src/ Unit/ NameUnicodeExtrasTest.php, line 65
Class
- NameUnicodeExtrasTest
- Tests the unicode additional functions.
Namespace
Drupal\Tests\name\UnitCode
protected function languageStrings() {
return [
'english' => [
'string' => 'A fat cat sat on the mat',
'count' => 7,
'initials' => 'AFCSOTM',
],
'greek' => [
'string' => 'Σὲ γνωρίζω ἀπὸ τὴν κόψη',
'count' => 5,
'initials' => 'ΣΓἈΤΚ',
],
'georgian' => [
'string' => 'გთხოვთ ახლავე გაიაროთ რეგისტრაცია',
'count' => 4,
'initials' => 'გაგრ',
],
'russian' => [
'string' => 'Зарегистрируйтесь сейчас на Десятую Международную Конференцию',
'count' => 6,
'initials' => 'ЗСНДМК',
],
'ethiopian' => [
'string' => 'ሰማይ አይታረስ ንጉሥ አይከሰስ',
'count' => 4,
'initials' => 'ሰአንአ',
],
];
}