MediaWiki  REL1_19
LanguageTest Class Reference
Inheritance diagram for LanguageTest:
Collaboration diagram for LanguageTest:

List of all members.

Public Member Functions

 provideFormatBitrate ()
 provideFormatSizes ()
 provideFormattableTimes ()
 provideHTMLTruncateData ()
 Array format is ($len, $ellipsis, $input, $expected)
 provideLanguageCodes ()
 provideSprintfDateSamples ()
 setUp ()
 tearDown ()
 testBuiltInCodeValidation ($code, $message= '')
 Test Language::isValidBuiltInCode() provideLanguageCodes.
 testBuiltInCodeValidationRejectUnderscore ()
 testFormatBitrate ($bps, $expected, $msg)
 provideFormatBitrate
 testFormatSize ($size, $expected, $msg)
 provideFormatSizes
 testFormatTimePeriod ($seconds, $format, $expected, $desc)
 provideFormattableTimes
 testLanguageConvertDoubleWidthToSingleWidth ()
 testSprintfDate ($format, $ts, $expected, $msg)
 provideSprintfDateSamples
 testSprintfDateTZ ($format, $ts, $expected, $msg)
 bug 33454.
 testTruncate ()
 testTruncateHtml ($len, $ellipsis, $input, $expected)
 provideHTMLTruncateData()

Private Attributes

 $lang

Detailed Description

Definition at line 3 of file LanguageTest.php.


Member Function Documentation

Definition at line 598 of file LanguageTest.php.

Definition at line 536 of file LanguageTest.php.

Array format is ($len, $ellipsis, $input, $expected)

Definition at line 114 of file LanguageTest.php.

Definition at line 188 of file LanguageTest.php.

Definition at line 10 of file LanguageTest.php.

References Language\factory().

Here is the call graph for this function:

Definition at line 13 of file LanguageTest.php.

LanguageTest::testBuiltInCodeValidation ( code,
message = '' 
)

Test Language::isValidBuiltInCode() provideLanguageCodes.

Definition at line 174 of file LanguageTest.php.

References Language\isValidBuiltInCode().

Here is the call graph for this function:

Definition at line 181 of file LanguageTest.php.

References Language\isValidBuiltInCode().

Here is the call graph for this function:

LanguageTest::testFormatBitrate ( bps,
expected,
msg 
)

provideFormatBitrate

Definition at line 590 of file LanguageTest.php.

LanguageTest::testFormatSize ( size,
expected,
msg 
)

provideFormatSizes

Definition at line 528 of file LanguageTest.php.

References $size.

LanguageTest::testFormatTimePeriod ( seconds,
format,
expected,
desc 
)

provideFormattableTimes

Definition at line 28 of file LanguageTest.php.

LanguageTest::testSprintfDate ( format,
ts,
expected,
msg 
)

provideSprintfDateSamples

Definition at line 203 of file LanguageTest.php.

LanguageTest::testSprintfDateTZ ( format,
ts,
expected,
msg 
)

bug 33454.

sprintfDate should always use UTC. provideSprintfDateSamples

Definition at line 214 of file LanguageTest.php.

References $res.

Definition at line 68 of file LanguageTest.php.

LanguageTest::testTruncateHtml ( len,
ellipsis,
input,
expected 
)

provideHTMLTruncateData()

Definition at line 103 of file LanguageTest.php.

References $input.


Member Data Documentation

LanguageTest::$lang [private]

Definition at line 8 of file LanguageTest.php.


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