MediaWiki
REL1_20
|
Tests for MediaWiki languages/LanguageUz.php. More...
Public 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) | |
setUp () | |
tearDown () | |
testConversionToCyrillic () | |
testConversionToLatin () | |
Private Attributes | |
$lang |
Tests for MediaWiki languages/LanguageUz.php.
Definition at line 18 of file LanguageUzTest.php.
LanguageUzTest::assertConverted | ( | $ | text, |
$ | variant, | ||
$ | msg = '' |
||
) |
Wrapper to verify a text is different once converted to a variant.
$text | string Text to convert |
$variant | string Language variant 'uz-cyrl' or 'uz-latn' |
$msg | string Optional message |
Definition at line 82 of file LanguageUzTest.php.
References convertTo().
Referenced by assertCyrillic(), and assertLatin().
LanguageUzTest::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.
Definition at line 95 of file LanguageUzTest.php.
References assertConverted(), and assertUnConverted().
LanguageUzTest::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.
Definition at line 104 of file LanguageUzTest.php.
References assertConverted(), and assertUnConverted().
LanguageUzTest::assertUnConverted | ( | $ | text, |
$ | variant, | ||
$ | msg = '' |
||
) |
Wrapper to verify text stay the same after applying conversion.
$text | string Text to convert |
$variant | string Language variant 'uz-cyrl' or 'uz-latn' |
$msg | string Optional message |
Definition at line 69 of file LanguageUzTest.php.
References convertTo().
Referenced by assertCyrillic(), and assertLatin().
LanguageUzTest::convertTo | ( | $ | text, |
$ | variant | ||
) |
Wrapper for converter::convertTo() method.
Definition at line 111 of file LanguageUzTest.php.
Referenced by assertConverted(), assertUnConverted(), convertToCyrillic(), and convertToLatin().
LanguageUzTest::convertToCyrillic | ( | $ | text | ) |
Definition at line 114 of file LanguageUzTest.php.
References convertTo().
Referenced by testConversionToCyrillic().
LanguageUzTest::convertToLatin | ( | $ | text | ) |
Definition at line 117 of file LanguageUzTest.php.
References convertTo().
Referenced by testConversionToLatin().
Definition at line 22 of file LanguageUzTest.php.
References Language\factory().
Reimplemented from MediaWikiTestCase.
Definition at line 25 of file LanguageUzTest.php.
Definition at line 32 of file LanguageUzTest.php.
References convertToCyrillic().
Definition at line 51 of file LanguageUzTest.php.
References convertToLatin().
LanguageUzTest::$lang [private] |
Definition at line 20 of file LanguageUzTest.php.