|
MediaWiki
REL1_24
|
Tests for MediaWiki languages/LanguageUz.php. More...


Public Member Functions | |
| testConversionToCyrillic () | |
| testConversionToLatin () | |
| LanguageConverter::convertTo | |
Protected Member Functions | |
| assertConverted ($text, $variant, $msg= '') | |
| Wrapper to verify a text is different once converted to a variant. | |
| assertCyrillic ($text, $msg= '') | |
| Verifiy the given Cyrillic text is not converted when using using the cyrillic variant and converted to Latin when using the Latin variant. | |
| assertLatin ($text, $msg= '') | |
| Verifiy the given Latin text is not converted when using using the Latin variant and converted to Cyrillic when using the Cyrillic variant. | |
| assertUnConverted ($text, $variant, $msg= '') | |
| Wrapper to verify text stay the same after applying conversion. | |
| convertTo ($text, $variant) | |
| Wrapper for converter::convertTo() method. | |
| convertToCyrillic ($text) | |
| convertToLatin ($text) | |
Tests for MediaWiki languages/LanguageUz.php.
Definition at line 20 of file LanguageUzTest.php.
| LanguageUzTest::assertConverted | ( | $ | text, |
| $ | variant, | ||
| $ | msg = '' |
||
| ) | [protected] |
Wrapper to verify a text is different once converted to a variant.
| string | $text | Text to convert |
| string | $variant | Language variant 'uz-cyrl' or 'uz-latn' |
| string | $msg | Optional message |
Definition at line 80 of file LanguageUzTest.php.
References convertTo().
Referenced by assertCyrillic(), and assertLatin().
| LanguageUzTest::assertCyrillic | ( | $ | text, |
| $ | msg = '' |
||
| ) | [protected] |
Verifiy the given Cyrillic text is not converted when using using the cyrillic variant and converted to Latin when using the Latin variant.
| string | $text | Text to convert |
| string | $msg | Optional message |
Definition at line 95 of file LanguageUzTest.php.
References assertConverted(), and assertUnConverted().
| LanguageUzTest::assertLatin | ( | $ | text, |
| $ | msg = '' |
||
| ) | [protected] |
Verifiy the given Latin text is not converted when using using the Latin variant and converted to Cyrillic when using the Cyrillic variant.
| string | $text | Text to convert |
| string | $msg | Optional message |
Definition at line 107 of file LanguageUzTest.php.
References assertConverted(), and assertUnConverted().
| LanguageUzTest::assertUnConverted | ( | $ | text, |
| $ | variant, | ||
| $ | msg = '' |
||
| ) | [protected] |
Wrapper to verify text stay the same after applying conversion.
| string | $text | Text to convert |
| string | $variant | Language variant 'uz-cyrl' or 'uz-latn' |
| string | $msg | Optional message |
Definition at line 66 of file LanguageUzTest.php.
References convertTo().
Referenced by assertCyrillic(), and assertLatin().
| LanguageUzTest::convertTo | ( | $ | text, |
| $ | variant | ||
| ) | [protected] |
Wrapper for converter::convertTo() method.
Definition at line 113 of file LanguageUzTest.php.
References LanguageClassesTestCase\getLang().
Referenced by assertConverted(), assertUnConverted(), convertToCyrillic(), and convertToLatin().
| LanguageUzTest::convertToCyrillic | ( | $ | text | ) | [protected] |
Definition at line 117 of file LanguageUzTest.php.
References convertTo().
Referenced by testConversionToCyrillic().
| LanguageUzTest::convertToLatin | ( | $ | text | ) | [protected] |
Definition at line 121 of file LanguageUzTest.php.
References convertTo().
Referenced by testConversionToLatin().
Definition at line 26 of file LanguageUzTest.php.
References convertToCyrillic().
Definition at line 48 of file LanguageUzTest.php.
References convertToLatin().