MediaWiki  REL1_21
LanguageUzTest Class Reference

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

Inheritance diagram for LanguageUzTest:
Collaboration diagram for LanguageUzTest:

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)
 testConversionToCyrillic ()
 testConversionToLatin ()

Detailed Description

Tests for MediaWiki languages/LanguageUz.php.

Definition at line 18 of file LanguageUzTest.php.


Member Function Documentation

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

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

Parameters:
$textstring Text to convert
$variantstring Language variant 'uz-cyrl' or 'uz-latn'
$msgstring Optional message

Definition at line 74 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 87 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 97 of file LanguageUzTest.php.

References assertConverted(), and assertUnConverted().

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

Wrapper to verify text stay the same after applying conversion.

Parameters:
$textstring Text to convert
$variantstring Language variant 'uz-cyrl' or 'uz-latn'
$msgstring Optional message

Definition at line 60 of file LanguageUzTest.php.

References convertTo().

Referenced by assertCyrillic(), and assertLatin().

LanguageUzTest::convertTo ( text,
variant 
)

Wrapper for converter::convertTo() method.

Definition at line 104 of file LanguageUzTest.php.

References LanguageClassesTestCase\getLang().

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

Definition at line 108 of file LanguageUzTest.php.

References convertTo().

Referenced by testConversionToCyrillic().

Definition at line 112 of file LanguageUzTest.php.

References convertTo().

Referenced by testConversionToLatin().

Author:
Nikola Smolenski

Definition at line 23 of file LanguageUzTest.php.

References convertToCyrillic().

Definition at line 42 of file LanguageUzTest.php.

References convertToLatin().


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