MediaWiki
REL1_20
|
Tests for MediaWiki languages/LanguageSr.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) | |
providePluralFourForms () | |
providePluralTwoForms () | |
setUp () | |
tearDown () | |
testConversionToCyrillic () | |
testConversionToLatin () | |
testEasyConversions () | |
testMixedConversions () | |
testPluralFourForms ($result, $value) | |
providePluralFourForms | |
testPluralTwoForms ($result, $value) | |
providePluralTwoForms | |
testSameAmountOfLatinAndCyrillicGetConverted () | |
Private Attributes | |
$lang |
Tests for MediaWiki languages/LanguageSr.php.
Definition at line 18 of file LanguageSrTest.php.
LanguageSrTest::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 'sr-ec' or 'sr-el' |
$msg | string Optional message |
Definition at line 180 of file LanguageSrTest.php.
References convertTo().
Referenced by assertCyrillic(), assertLatin(), and testSameAmountOfLatinAndCyrillicGetConverted().
LanguageSrTest::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 193 of file LanguageSrTest.php.
References assertConverted(), and assertUnConverted().
Referenced by testEasyConversions(), and testMixedConversions().
LanguageSrTest::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 202 of file LanguageSrTest.php.
References assertConverted(), and assertUnConverted().
Referenced by testEasyConversions(), and testMixedConversions().
LanguageSrTest::assertUnConverted | ( | $ | text, |
$ | variant, | ||
$ | msg = '' |
||
) |
Wrapper to verify text stay the same after applying conversion.
$text | string Text to convert |
$variant | string Language variant 'sr-ec' or 'sr-el' |
$msg | string Optional message |
Definition at line 167 of file LanguageSrTest.php.
References convertTo().
Referenced by assertCyrillic(), and assertLatin().
LanguageSrTest::convertTo | ( | $ | text, |
$ | variant | ||
) |
Wrapper for converter::convertTo() method.
Definition at line 209 of file LanguageSrTest.php.
Referenced by assertConverted(), assertUnConverted(), convertToCyrillic(), and convertToLatin().
LanguageSrTest::convertToCyrillic | ( | $ | text | ) |
Definition at line 217 of file LanguageSrTest.php.
References convertTo().
Referenced by testConversionToCyrillic().
LanguageSrTest::convertToLatin | ( | $ | text | ) |
Definition at line 220 of file LanguageSrTest.php.
References convertTo().
Referenced by testConversionToLatin().
Definition at line 131 of file LanguageSrTest.php.
Definition at line 151 of file LanguageSrTest.php.
Definition at line 22 of file LanguageSrTest.php.
References Language\factory().
Reimplemented from MediaWikiTestCase.
Definition at line 25 of file LanguageSrTest.php.
Definition at line 67 of file LanguageSrTest.php.
References convertToCyrillic().
Definition at line 106 of file LanguageSrTest.php.
References convertToLatin().
Definition at line 31 of file LanguageSrTest.php.
References assertCyrillic(), and assertLatin().
Definition at line 42 of file LanguageSrTest.php.
References assertCyrillic(), and assertLatin().
LanguageSrTest::testPluralFourForms | ( | $ | result, |
$ | value | ||
) |
providePluralFourForms
Definition at line 126 of file LanguageSrTest.php.
LanguageSrTest::testPluralTwoForms | ( | $ | result, |
$ | value | ||
) |
providePluralTwoForms
Definition at line 147 of file LanguageSrTest.php.
Definition at line 53 of file LanguageSrTest.php.
References assertConverted().
LanguageSrTest::$lang [private] |
Definition at line 20 of file LanguageSrTest.php.