MediaWiki  REL1_22
LanguageSrTest Class Reference

Tests for MediaWiki languages/LanguageSr.php. More...

Inheritance diagram for LanguageSrTest:
Collaboration diagram for LanguageSrTest:

List of all members.

Public Member Functions

 testConversionToCyrillic ()
 testConversionToLatin ()
 LanguageConverter::convertTo
 testEasyConversions ()
 LanguageConverter::convertTo
 testGetPluralRuleType ($result, $value)
 providePlural Language::getPluralRuleType
 testMixedConversions ()
 LanguageConverter::convertTo
 testPlural ($result, $value)
 providePlural Language::convertPlural
 testPluralTwoForms ($result, $value)
 providePluralTwoForms Language::convertPlural
 testSameAmountOfLatinAndCyrillicGetConverted ()
 LanguageConverter::convertTo

Static Public Member Functions

static providePlural ()
static providePluralTwoForms ()

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)

Detailed Description

Tests for MediaWiki languages/LanguageSr.php.

Definition at line 20 of file LanguageSrTest.php.


Member Function Documentation

LanguageSrTest::assertConverted ( text,
variant,
msg = '' 
) [protected]

Wrapper to verify a text is different once converted to a variant.

Parameters:
$textstring Text to convert
$variantstring Language variant 'sr-ec' or 'sr-el'
$msgstring Optional message

Definition at line 201 of file LanguageSrTest.php.

References convertTo().

Referenced by assertCyrillic(), assertLatin(), and testSameAmountOfLatinAndCyrillicGetConverted().

LanguageSrTest::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.

Definition at line 214 of file LanguageSrTest.php.

References assertConverted(), and assertUnConverted().

Referenced by testEasyConversions(), and testMixedConversions().

LanguageSrTest::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.

Definition at line 224 of file LanguageSrTest.php.

References assertConverted(), and assertUnConverted().

Referenced by testEasyConversions(), and testMixedConversions().

LanguageSrTest::assertUnConverted ( text,
variant,
msg = '' 
) [protected]

Wrapper to verify text stay the same after applying conversion.

Parameters:
$textstring Text to convert
$variantstring Language variant 'sr-ec' or 'sr-el'
$msgstring Optional message

Definition at line 187 of file LanguageSrTest.php.

References convertTo().

Referenced by assertCyrillic(), and assertLatin().

LanguageSrTest::convertTo ( text,
variant 
) [protected]

Wrapper for converter::convertTo() method.

Definition at line 231 of file LanguageSrTest.php.

References LanguageClassesTestCase\getLang().

Referenced by assertConverted(), assertUnConverted(), convertToCyrillic(), and convertToLatin().

LanguageSrTest::convertToCyrillic ( text) [protected]

Definition at line 239 of file LanguageSrTest.php.

References convertTo().

Referenced by testConversionToCyrillic().

LanguageSrTest::convertToLatin ( text) [protected]

Definition at line 243 of file LanguageSrTest.php.

References convertTo().

Referenced by testConversionToLatin().

static LanguageSrTest::providePlural ( ) [static]

Definition at line 145 of file LanguageSrTest.php.

References array().

Definition at line 170 of file LanguageSrTest.php.

References array().

Author:
Nikola Smolenski LanguageConverter::convertTo

Definition at line 67 of file LanguageSrTest.php.

References convertToCyrillic().

LanguageSrTest::testGetPluralRuleType ( result,
value 
)

providePlural Language::getPluralRuleType

Definition at line 141 of file LanguageSrTest.php.

References $result, $value, and LanguageClassesTestCase\getLang().

LanguageSrTest::testPlural ( result,
value 
)

providePlural Language::convertPlural

Definition at line 132 of file LanguageSrTest.php.

References $result, $value, array(), and LanguageClassesTestCase\getLang().

LanguageSrTest::testPluralTwoForms ( result,
value 
)

providePluralTwoForms Language::convertPlural

Definition at line 165 of file LanguageSrTest.php.

References $result, $value, array(), and LanguageClassesTestCase\getLang().


The documentation for this class was generated from the following file: