MediaWiki
REL1_22
|
Definition at line 3 of file LanguageTest.php.
static LanguageTest::provideCheckTitleEncodingData | ( | ) | [static] |
Definition at line 1267 of file LanguageTest.php.
References array().
static LanguageTest::provideCommafyData | ( | ) | [static] |
Definition at line 1468 of file LanguageTest.php.
References array().
static LanguageTest::provideFormatBitrate | ( | ) | [static] |
Definition at line 1057 of file LanguageTest.php.
References array().
static LanguageTest::provideFormatDuration | ( | ) | [static] |
Definition at line 1130 of file LanguageTest.php.
References array().
static LanguageTest::provideFormatSizes | ( | ) | [static] |
Definition at line 994 of file LanguageTest.php.
References array().
static LanguageTest::provideFormattableTimes | ( | ) | [static] |
Definition at line 26 of file LanguageTest.php.
References array().
static LanguageTest::provideGetNamespaceAliases | ( | ) | [static] |
Definition at line 1555 of file LanguageTest.php.
References array().
static LanguageTest::provideGetParentLanguage | ( | ) | [static] |
Definition at line 1533 of file LanguageTest.php.
References array().
static LanguageTest::provideHTMLTruncateData | ( | ) | [static] |
Definition at line 261 of file LanguageTest.php.
References array().
static LanguageTest::provideIsSupportedLanguage | ( | ) | [static] |
Definition at line 1511 of file LanguageTest.php.
References array().
static LanguageTest::provideKnownLanguageTags | ( | ) | [static] |
Definition at line 478 of file LanguageTest.php.
References array().
static LanguageTest::provideLanguageCodes | ( | ) | [static] |
Definition at line 454 of file LanguageTest.php.
References array().
static LanguageTest::provideMalformedLanguageTags | ( | ) | [static] |
The test cases are based on the tests in the GaBuZoMeu parser written by Stéphane Bortzmeyer <[email protected]> and distributed as free software, under the GNU General Public Licence.
http://www.bortzmeyer.org/gabuzomeu-parsing-language-tags.html
Definition at line 387 of file LanguageTest.php.
References array().
static LanguageTest::providePluralData | ( | ) | [static] |
Definition at line 1388 of file LanguageTest.php.
References array().
static LanguageTest::provideRomanNumeralsData | ( | ) | [static] |
Definition at line 1332 of file LanguageTest.php.
References array().
static LanguageTest::provideSprintfDateSamples | ( | ) | [static] |
Definition at line 597 of file LanguageTest.php.
References array().
static LanguageTest::provideTranslateBlockExpiry | ( | ) | [static] |
Definition at line 1439 of file LanguageTest.php.
References array().
static LanguageTest::provideUnknownLanguageTags | ( | ) | [static] |
Definition at line 512 of file LanguageTest.php.
References array().
static LanguageTest::provideWellFormedLanguageTags | ( | ) | [static] |
The test cases are based on the tests in the GaBuZoMeu parser written by Stéphane Bortzmeyer <[email protected]> and distributed as free software, under the GNU General Public Licence.
http://www.bortzmeyer.org/gabuzomeu-parsing-language-tags.html
Definition at line 335 of file LanguageTest.php.
References array().
LanguageTest::testBuiltInCodeValidation | ( | $ | code, |
$ | message = '' |
||
) |
Test Language::isValidBuiltInCode() provideLanguageCodes Language::isValidBuiltInCode.
Definition at line 437 of file LanguageTest.php.
References Language\isValidBuiltInCode().
Definition at line 447 of file LanguageTest.php.
References Language\isValidBuiltInCode().
provideCheckTitleEncodingData Language::checkTitleEncoding
Definition at line 1259 of file LanguageTest.php.
References $s, and LanguageClassesTestCase\getLang().
LanguageTest::testCommafy | ( | $ | number, |
$ | numbersWithCommas | ||
) |
Language::commafy() provideCommafyData
Definition at line 1460 of file LanguageTest.php.
References LanguageClassesTestCase\getLang().
LanguageTest::testConvertPlural | ( | $ | expected, |
$ | number, | ||
$ | forms | ||
) |
providePluralData Language::convertPlural
Definition at line 1383 of file LanguageTest.php.
References LanguageClassesTestCase\getLang().
LanguageTest::testFormatBitrate | ( | $ | bps, |
$ | expected, | ||
$ | msg | ||
) |
provideFormatBitrate Language::formatBitrate
Definition at line 1049 of file LanguageTest.php.
References LanguageClassesTestCase\getLang().
LanguageTest::testFormatDuration | ( | $ | duration, |
$ | expected, | ||
$ | intervals = array() |
||
) |
provideFormatDuration Language::formatDuration
Definition at line 1122 of file LanguageTest.php.
References LanguageClassesTestCase\getLang().
LanguageTest::testFormatSize | ( | $ | size, |
$ | expected, | ||
$ | msg | ||
) |
provideFormatSizes Language::formatSize
Definition at line 986 of file LanguageTest.php.
References $size, and LanguageClassesTestCase\getLang().
LanguageTest::testFormatTimePeriod | ( | $ | seconds, |
$ | format, | ||
$ | expected, | ||
$ | desc | ||
) |
provideFormattableTimes# Language::formatTimePeriod
Definition at line 22 of file LanguageTest.php.
References LanguageClassesTestCase\getLang().
LanguageTest::testGetNamespaceAliases | ( | $ | languageCode, |
$ | subset | ||
) |
provideGetNamespaceAliases Language::getNamespaceAliases
Definition at line 1547 of file LanguageTest.php.
References as, and Language\factory().
LanguageTest::testGetParentLanguage | ( | $ | code, |
$ | expected, | ||
$ | comment | ||
) |
provideGetParentLanguage Language::getParentLanguage
Definition at line 1524 of file LanguageTest.php.
References $comment, and Language\factory().
LanguageTest::testIsSupportedLanguage | ( | $ | code, |
$ | expected, | ||
$ | comment | ||
) |
provideIsSupportedLanguage Language::isSupportedLanguage
Definition at line 1507 of file LanguageTest.php.
References $comment, and Language\isSupportedLanguage().
Definition at line 489 of file LanguageTest.php.
References Language\isKnownLanguageTag().
LanguageTest::testKnownLanguageTag | ( | $ | code, |
$ | message = '' |
||
) |
Test Language::isKnownLanguageTag() provideKnownLanguageTags Language::isKnownLanguageTag.
Definition at line 471 of file LanguageTest.php.
References Language\isKnownLanguageTag().
Language::convertDoubleWidth Language::normalizeForSearch
Definition at line 8 of file LanguageTest.php.
References LanguageClassesTestCase\getLang().
Negative test for Language::isWellFormedLanguageTag() Language::isWellFormedLanguageTag.
Definition at line 425 of file LanguageTest.php.
References Language\isWellFormedLanguageTag().
Definition at line 1490 of file LanguageTest.php.
References $s, array(), and LanguageClassesTestCase\getLang().
LanguageTest::testMalformedLanguageTag | ( | $ | code, |
$ | message = '' |
||
) |
Negative test for Language::isWellFormedLanguageTag() provideMalformedLanguageTags Language::isWellFormedLanguageTag.
Definition at line 374 of file LanguageTest.php.
References Language\isWellFormedLanguageTag().
LanguageTest::testRomanNumerals | ( | $ | num, |
$ | numerals | ||
) |
provideRomanNumeralsData Language::romanNumeral
Definition at line 1324 of file LanguageTest.php.
References Language\romanNumeral().
LanguageTest::testSprintfDate | ( | $ | format, |
$ | ts, | ||
$ | expected, | ||
$ | msg | ||
) |
provideSprintfDateSamples Language::sprintfDate
Definition at line 550 of file LanguageTest.php.
References LanguageClassesTestCase\getLang().
Test too short timestamp MWException Language::sprintfDate.
Definition at line 542 of file LanguageTest.php.
References LanguageClassesTestCase\getLang().
LanguageTest::testSprintfDateNoZone | ( | $ | format, |
$ | ts, | ||
$ | expected, | ||
$ | ignore, | ||
$ | msg | ||
) |
sprintfDate should always use UTC when no zone is given.
provideSprintfDateSamples Language::sprintfDate
Definition at line 563 of file LanguageTest.php.
References $res, and LanguageClassesTestCase\getLang().
Test too long timestamp MWException Language::sprintfDate.
Definition at line 533 of file LanguageTest.php.
References LanguageClassesTestCase\getLang().
Test too short timestamp MWException Language::sprintfDate.
Definition at line 524 of file LanguageTest.php.
References LanguageClassesTestCase\getLang().
LanguageTest::testSprintfDateTZ | ( | $ | format, |
$ | ts, | ||
$ | ignore, | ||
$ | expected, | ||
$ | msg | ||
) |
sprintfDate should use passed timezone provideSprintfDateSamples Language::sprintfDate
Definition at line 584 of file LanguageTest.php.
References LanguageClassesTestCase\getLang().
LanguageTest::testTranslateBlockExpiry | ( | $ | expectedData, |
$ | str, | ||
$ | desc | ||
) |
Language::translateBlockExpiry() provideTranslateBlockExpiry
Definition at line 1428 of file LanguageTest.php.
References LanguageClassesTestCase\getLang(), and list.
Definition at line 214 of file LanguageTest.php.
References LanguageClassesTestCase\getLang().
LanguageTest::testTruncateHtml | ( | $ | len, |
$ | ellipsis, | ||
$ | input, | ||
$ | expected | ||
) |
provideHTMLTruncateData Language::truncateHTML
Definition at line 250 of file LanguageTest.php.
References LanguageClassesTestCase\getLang().
LanguageTest::testUnknownLanguageTag | ( | $ | code, |
$ | message = '' |
||
) |
Negative tests for Language::isKnownLanguageTag() provideUnKnownLanguageTags Language::isKnownLanguageTag.
Definition at line 505 of file LanguageTest.php.
References Language\isKnownLanguageTag().
LanguageTest::testWellFormedLanguageTag | ( | $ | code, |
$ | message = '' |
||
) |
Test Language::isWellFormedLanguageTag() provideWellFormedLanguageTags Language::isWellFormedLanguageTag.
Definition at line 322 of file LanguageTest.php.
References Language\isWellFormedLanguageTag().