MediaWiki  REL1_19
LanguageSrTest Class Reference

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

Inheritance diagram for LanguageSrTest:
Collaboration diagram for LanguageSrTest:

List of all members.

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

Detailed Description

Tests for MediaWiki languages/LanguageTr.php.

Definition at line 18 of file LanguageSrTest.php.


Member Function Documentation

LanguageSrTest::assertConverted ( text,
variant,
msg = '' 
)

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 156 of file LanguageSrTest.php.

References convertTo().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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 169 of file LanguageSrTest.php.

References assertConverted(), and assertUnConverted().

Referenced by testEasyConversions(), and testMixedConversions().

Here is the call graph for this function:

Here is the caller graph for this function:

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 178 of file LanguageSrTest.php.

References assertConverted(), and assertUnConverted().

Referenced by testEasyConversions(), and testMixedConversions().

Here is the call graph for this function:

Here is the caller graph for this function:

LanguageSrTest::assertUnConverted ( text,
variant,
msg = '' 
)

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 143 of file LanguageSrTest.php.

References convertTo().

Referenced by assertCyrillic(), and assertLatin().

Here is the call graph for this function:

Here is the caller graph for this function:

LanguageSrTest::convertTo ( text,
variant 
)

Wrapper for converter::convertTo() method.

Definition at line 185 of file LanguageSrTest.php.

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

Here is the caller graph for this function:

Definition at line 193 of file LanguageSrTest.php.

References convertTo().

Referenced by testConversionToCyrillic().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 196 of file LanguageSrTest.php.

References convertTo().

Referenced by testConversionToLatin().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 22 of file LanguageSrTest.php.

References Language\factory().

Here is the call graph for this function:

Definition at line 25 of file LanguageSrTest.php.

Author:
Nikola Smolenski

Definition at line 67 of file LanguageSrTest.php.

References convertToCyrillic().

Here is the call graph for this function:

Definition at line 86 of file LanguageSrTest.php.

References convertToLatin().

Here is the call graph for this function:

Definition at line 31 of file LanguageSrTest.php.

References assertCyrillic(), and assertLatin().

Here is the call graph for this function:

Definition at line 42 of file LanguageSrTest.php.

References assertCyrillic(), and assertLatin().

Here is the call graph for this function:

LanguageSrTest::testPluralFourForms ( result,
value 
)

providePluralFourForms

Definition at line 102 of file LanguageSrTest.php.

References $result.

LanguageSrTest::testPluralTwoForms ( result,
value 
)

providePluralTwoForms

Definition at line 123 of file LanguageSrTest.php.

References $result.

Definition at line 53 of file LanguageSrTest.php.

References assertConverted().

Here is the call graph for this function:


Member Data Documentation

LanguageSrTest::$lang [private]

Definition at line 20 of file LanguageSrTest.php.


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