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

Public Member Functions

 parseFormattedNumberProvider ()
 
 provideFormatNum ()
 
 testBuiltInCodeValidation ( $code, $expected, $message='')
 Test Language::isValidBuiltInCode() provideLanguageCodes Language::isValidBuiltInCode. More...
 
 testCheckTitleEncoding ( $s)
 provideCheckTitleEncodingData Language::checkTitleEncoding More...
 
 testCommafy ( $number, $numbersWithCommas)
 Language::commafy() provideCommafyData. More...
 
 testConvertPlural ( $expected, $number, $forms)
 providePluralData Language::convertPlural More...
 
 testEmbedBidi ()
 Language::embedBidi() More...
 
 testEquals ()
 Language::equals. More...
 
 testFormatBitrate ( $bps, $expected, $msg)
 provideFormatBitrate Language::formatBitrate More...
 
 testFormatDuration ( $duration, $expected, $intervals=[])
 provideFormatDuration Language::formatDuration More...
 
 testFormatNum ( $translateNumerals, $langCode, $number, $nocommafy, $expected)
 provideFormatNum Language::formatNum More...
 
 testFormatSize ( $size, $expected, $msg)
 provideFormatSizes Language::formatSize More...
 
 testFormatTimePeriod ( $seconds, $format, $expected, $desc)
 provideFormattableTimes Language::formatTimePeriod More...
 
 testGetNamespaceAliases ( $languageCode, $subset)
 provideGetNamespaceAliases Language::getNamespaceAliases More...
 
 testGetParentLanguage ( $code, $expected, $comment)
 provideGetParentLanguage Language::getParentLanguage More...
 
 testHebrewNumeral ( $num, $numerals)
 provideHebrewNumeralsData Language::hebrewNumeral More...
 
 testIsSupportedLanguage ( $code, $expected, $comment)
 provideIsSupportedLanguage Language::isSupportedLanguage More...
 
 testKnownCldrLanguageTag ()
 Language::isKnownLanguageTag. More...
 
 testKnownLanguageTag ( $code, $message='')
 Test Language::isKnownLanguageTag() provideKnownLanguageTags Language::isKnownLanguageTag. More...
 
 testLanguageConvertDoubleWidthToSingleWidth ()
 Language::convertDoubleWidth Language::normalizeForSearch. More...
 
 testLenientLanguageTag ()
 Negative test for Language::isWellFormedLanguageTag() Language::isWellFormedLanguageTag. More...
 
 testListToText ()
 Language::listToText. More...
 
 testMalformedLanguageTag ( $code, $message='')
 Negative test for Language::isWellFormedLanguageTag() provideMalformedLanguageTags Language::isWellFormedLanguageTag. More...
 
 testParseFormattedNumber ( $langCode, $number)
 Language::parseFormattedNumber parseFormattedNumberProvider. More...
 
 testRomanNumerals ( $num, $numerals)
 provideRomanNumeralsData Language::romanNumeral More...
 
 testSprintfDate ( $format, $ts, $expected, $msg)
 provideSprintfDateSamples Language::sprintfDate More...
 
 testSprintfDateNotAllDigitTimestamp ()
 Test too short timestamp MWException Language::sprintfDate. More...
 
 testSprintfDateNoTtlIfNotNeeded ()
 sprintfDate should only calculate a TTL if the caller is going to use it. More...
 
 testSprintfDateNoZone ( $format, $ts, $expected, $ignore, $msg)
 sprintfDate should always use UTC when no zone is given. More...
 
 testSprintfDateTooLongTimestamp ()
 Test too long timestamp MWException Language::sprintfDate. More...
 
 testSprintfDateTooShortTimestamp ()
 Test too short timestamp MWException Language::sprintfDate. More...
 
 testSprintfDateTZ ( $format, $ts, $ignore, $expected, $msg)
 sprintfDate should use passed timezone provideSprintfDateSamples Language::sprintfDate More...
 
 testTranslateBlockExpiry ( $expectedData, $str, $now, $desc)
 Language::translateBlockExpiry() provideTranslateBlockExpiry. More...
 
 testTruncateForDatabase ()
 Language::truncateForDatabase Language::truncateInternal. More...
 
 testTruncateForVisual ( $expected, $string, $length, $ellipsis='...', $adjustLength=true)
 provideTruncateData Language::truncateForVisual Language::truncateInternal More...
 
 testTruncateHtml ( $len, $ellipsis, $input, $expected)
 provideHTMLTruncateData Language::truncateHTML More...
 
 testUnknownLanguageTag ( $code, $message='')
 Negative tests for Language::isKnownLanguageTag() provideUnKnownLanguageTags Language::isKnownLanguageTag. More...
 
 testWellFormedLanguageTag ( $code, $message='')
 Test Language::isWellFormedLanguageTag() provideWellFormedLanguageTags Language::isWellFormedLanguageTag. More...
 
- Public Member Functions inherited from MediaWikiTestCase
 __construct ( $name=null, array $data=[], $dataName='')
 
 __destruct ()
 
 addDBData ()
 Stub. More...
 
 addDBDataOnce ()
 Stub. More...
 
 dbPrefix ()
 
 getCliArg ( $offset)
 
 hideDeprecated ( $function)
 Don't throw a warning if $function is deprecated and called later. More...
 
 needsDB ()
 
 run (PHPUnit_Framework_TestResult $result=null)
 
 setCliArg ( $offset, $value)
 
 setContentLang ( $lang)
 
 setGroupPermissions ( $newPerms, $newKey=null, $newValue=null)
 Alters $wgGroupPermissions for the duration of the test. More...
 
 setupAllTestDBs ()
 Set up all test DBs. More...
 
 setUserLang ( $lang)
 
 testMediaWikiTestCaseParentSetupCalled ()
 Make sure MediaWikiTestCase extending classes have called their parent setUp method. More...
 
 usesTemporaryTables ()
 

Static Public Member Functions

static provideCheckTitleEncodingData ()
 
static provideCommafyData ()
 
static provideFormatBitrate ()
 
static provideFormatDuration ()
 
static provideFormatSizes ()
 
static provideFormattableTimes ()
 
static provideGetNamespaceAliases ()
 
static provideGetParentLanguage ()
 
static provideHebrewNumeralsData ()
 
static provideHTMLTruncateData ()
 
static provideIsSupportedLanguage ()
 
static provideKnownLanguageTags ()
 
static provideLanguageCodes ()
 
static provideMalformedLanguageTags ()
 The test cases are based on the tests in the GaBuZoMeu parser written by Stéphane Bortzmeyer bortz.nosp@m.meye.nosp@m.r@nic.nosp@m..fr and distributed as free software, under the GNU General Public Licence. More...
 
static providePluralData ()
 
static provideRomanNumeralsData ()
 
static provideSprintfDateSamples ()
 
static provideTranslateBlockExpiry ()
 
static provideTruncateData ()
 
static provideUnknownLanguageTags ()
 
static provideWellFormedLanguageTags ()
 The test cases are based on the tests in the GaBuZoMeu parser written by Stéphane Bortzmeyer bortz.nosp@m.meye.nosp@m.r@nic.nosp@m..fr and distributed as free software, under the GNU General Public Licence. More...
 
- Static Public Member Functions inherited from MediaWikiTestCase
static getMutableTestUser ( $groups=[])
 Convenience method for getting a mutable test user. More...
 
static getTestSysop ()
 Convenience method for getting an immutable admin test user. More...
 
static getTestUser ( $groups=[])
 Convenience method for getting an immutable test user. More...
 
static listTables (IMaintainableDatabase $db)
 
static prepareServices (Config $bootstrapConfig)
 Prepare service configuration for unit testing. More...
 
static setUpBeforeClass ()
 
static setupTestDB (Database $db, $prefix)
 Creates an empty skeleton of the wiki database by cloning its structure to equivalent tables using the given $prefix. More...
 
static teardownTestDB ()
 Restores MediaWiki to using the table set (table prefix) it was using before setupTestDB() was called. More...
 
static wfResetOutputBuffersBarrier ( $buffer)
 Used as a marker to prevent wfResetOutputBuffers from breaking PHPUnit. More...
 

Additional Inherited Members

- Public Attributes inherited from MediaWikiTestCase
const DB_PREFIX = 'unittest_'
 Table name prefixes. More...
 
const ORA_DB_PREFIX = 'ut_'
 
- Static Public Attributes inherited from MediaWikiTestCase
static TestUser[] $users
 
- Protected Member Functions inherited from LanguageClassesTestCase
 getLang ()
 
 setUp ()
 Create a new language object before each test. More...
 
 tearDown ()
 Delete the internal language object so each test start out with a fresh language instance. More...
 
- Protected Member Functions inherited from MediaWikiTestCase
 addTmpFiles ( $files)
 
 arrayWrap (array $elements)
 Utility method taking an array of elements and wrapping each element in its own array. More...
 
 assertArrayEquals (array $expected, array $actual, $ordered=false, $named=false)
 Assert that two arrays are equal. More...
 
 assertFileContains ( $fileName, $actualData, $createIfMissing=true, $msg='')
 Check whether file contains given data. More...
 
 assertHTMLEquals ( $expected, $actual, $msg='')
 Put each HTML element on its own line and then equals() the results. More...
 
 assertSelect ( $table, $fields, $condition, array $expectedRows, array $options=[], array $join_conds=[])
 Asserts that the given database query yields the rows given by $expectedRows. More...
 
 assertType ( $type, $actual, $message='')
 Asserts the type of the provided value. More...
 
 assertTypeOrValue ( $type, $actual, $value=false, $message='')
 Asserts that the provided variable is of the specified internal type or equals the $value argument. More...
 
 checkDbIsSupported ()
 
 checkPHPExtension ( $extName)
 Check if $extName is a loaded PHP extension, will skip the test whenever it is not loaded. More...
 
 getDefaultWikitextNS ()
 Returns the ID of a namespace that defaults to Wikitext. More...
 
 getNewTempDirectory ()
 obtains a new temporary directory More...
 
 getNewTempFile ()
 Obtains a new temporary file name. More...
 
 getSchemaOverrides (IMaintainableDatabase $db)
 Stub. More...
 
 insertPage ( $pageName, $text='Sample page for unit test.', $namespace=null)
 Insert a new page. More...
 
 isWikitextNS ( $ns)
 Returns true if the given namespace defaults to Wikitext according to $wgNamespaceContentModels. More...
 
 markTestSkippedIfNoDiff3 ()
 Check, if $wgDiff3 is set and ready to merge Will mark the calling test as skipped, if not ready. More...
 
 mergeMwGlobalArrayValue ( $name, $values)
 Merges the given values into a MW global array variable. More...
 
 objectAssociativeSort (array &$array)
 Does an associative sort that works for objects. More...
 
 overrideMwServices (Config $configOverrides=null, array $services=[])
 Stashes the global instance of MediaWikiServices, and installs a new one, allowing test cases to override settings and services. More...
 
 setLogger ( $channel, LoggerInterface $logger)
 Sets the logger for a specified channel, for the duration of the test. More...
 
 setMwGlobals ( $pairs, $value=null)
 Sets a global, maintaining a stashed version of the previous global to be restored in tearDown. More...
 
 setService ( $name, $object)
 Sets a service, maintaining a stashed version of the previous service to be restored in tearDown. More...
 
 setTemporaryHook ( $hookName, $handler)
 Create a temporary hook handler which will be reset by tearDown. More...
 
 stashMwGlobals ( $globalKeys)
 Stashes the global, will be restored in tearDown() More...
 
- Static Protected Member Functions inherited from MediaWikiTestCase
static getExternalStoreDatabaseConnections ()
 Gets master database connections for all of the ExternalStoreDB stores configured in $wgDefaultExternalStore. More...
 
static isUsingExternalStoreDB ()
 Check whether ExternalStoreDB is being used. More...
 
static resetGlobalServices (Config $bootstrapConfig=null)
 Reset global services, and install testing environment. More...
 
static setupDatabaseWithTestPrefix (IMaintainableDatabase $db, $prefix)
 Setups a database with the given prefix. More...
 
static setupExternalStoreTestDBs ( $testPrefix)
 Clones the External Store database(s) for testing. More...
 
static stripStringKeys (&$r)
 Utility function for eliminating all string keys from an array. More...
 
- Protected Attributes inherited from MediaWikiTestCase
Database $db
 Primary database. More...
 
array $supportedDBs
 
array $tablesUsed = []
 

Detailed Description

Definition at line 3 of file LanguageTest.php.

Member Function Documentation

◆ parseFormattedNumberProvider()

LanguageTest::parseFormattedNumberProvider ( )

Definition at line 1727 of file LanguageTest.php.

◆ provideCheckTitleEncodingData()

static LanguageTest::provideCheckTitleEncodingData ( )
static

Definition at line 1383 of file LanguageTest.php.

◆ provideCommafyData()

static LanguageTest::provideCommafyData ( )
static

Definition at line 1750 of file LanguageTest.php.

◆ provideFormatBitrate()

static LanguageTest::provideFormatBitrate ( )
static

Definition at line 1174 of file LanguageTest.php.

◆ provideFormatDuration()

static LanguageTest::provideFormatDuration ( )
static

Definition at line 1246 of file LanguageTest.php.

◆ provideFormatNum()

LanguageTest::provideFormatNum ( )

Definition at line 1701 of file LanguageTest.php.

◆ provideFormatSizes()

static LanguageTest::provideFormatSizes ( )
static

Definition at line 1111 of file LanguageTest.php.

◆ provideFormattableTimes()

static LanguageTest::provideFormattableTimes ( )
static

Definition at line 26 of file LanguageTest.php.

References true.

◆ provideGetNamespaceAliases()

static LanguageTest::provideGetNamespaceAliases ( )
static

Definition at line 1841 of file LanguageTest.php.

References NS_FILE.

◆ provideGetParentLanguage()

static LanguageTest::provideGetParentLanguage ( )
static

Definition at line 1818 of file LanguageTest.php.

◆ provideHebrewNumeralsData()

static LanguageTest::provideHebrewNumeralsData ( )
static

Definition at line 1509 of file LanguageTest.php.

◆ provideHTMLTruncateData()

static LanguageTest::provideHTMLTruncateData ( )
static
Returns
array Format is ($len, $ellipsis, $input, $expected)

Definition at line 325 of file LanguageTest.php.

◆ provideIsSupportedLanguage()

static LanguageTest::provideIsSupportedLanguage ( )
static

Definition at line 1796 of file LanguageTest.php.

◆ provideKnownLanguageTags()

static LanguageTest::provideKnownLanguageTags ( )
static

Definition at line 534 of file LanguageTest.php.

◆ provideLanguageCodes()

static LanguageTest::provideLanguageCodes ( )
static

Definition at line 511 of file LanguageTest.php.

◆ provideMalformedLanguageTags()

static LanguageTest::provideMalformedLanguageTags ( )
static

The test cases are based on the tests in the GaBuZoMeu parser written by Stéphane Bortzmeyer bortz.nosp@m.meye.nosp@m.r@nic.nosp@m..fr and distributed as free software, under the GNU General Public Licence.

http://www.bortzmeyer.org/gabuzomeu-parsing-language-tags.html

Definition at line 451 of file LanguageTest.php.

◆ providePluralData()

static LanguageTest::providePluralData ( )
static

Definition at line 1577 of file LanguageTest.php.

◆ provideRomanNumeralsData()

static LanguageTest::provideRomanNumeralsData ( )
static

Definition at line 1450 of file LanguageTest.php.

◆ provideSprintfDateSamples()

static LanguageTest::provideSprintfDateSamples ( )
static

Definition at line 692 of file LanguageTest.php.

◆ provideTranslateBlockExpiry()

static LanguageTest::provideTranslateBlockExpiry ( )
static

Definition at line 1653 of file LanguageTest.php.

References wfTimestamp().

◆ provideTruncateData()

static LanguageTest::provideTruncateData ( )
static
Returns
array Format is ($expected, $string, $length, $ellipsis, $adjustLength)

Definition at line 294 of file LanguageTest.php.

References false.

◆ provideUnknownLanguageTags()

static LanguageTest::provideUnknownLanguageTags ( )
static

Definition at line 570 of file LanguageTest.php.

◆ provideWellFormedLanguageTags()

static LanguageTest::provideWellFormedLanguageTags ( )
static

The test cases are based on the tests in the GaBuZoMeu parser written by Stéphane Bortzmeyer bortz.nosp@m.meye.nosp@m.r@nic.nosp@m..fr and distributed as free software, under the GNU General Public Licence.

http://www.bortzmeyer.org/gabuzomeu-parsing-language-tags.html

Definition at line 399 of file LanguageTest.php.

◆ testBuiltInCodeValidation()

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

Test Language::isValidBuiltInCode() provideLanguageCodes Language::isValidBuiltInCode.

Definition at line 504 of file LanguageTest.php.

References $code, and Language\isValidBuiltInCode().

◆ testCheckTitleEncoding()

LanguageTest::testCheckTitleEncoding (   $s)

provideCheckTitleEncodingData Language::checkTitleEncoding

Definition at line 1375 of file LanguageTest.php.

References $s, and LanguageClassesTestCase\getLang().

◆ testCommafy()

LanguageTest::testCommafy (   $number,
  $numbersWithCommas 
)

Language::commafy() provideCommafyData.

Definition at line 1742 of file LanguageTest.php.

References LanguageClassesTestCase\getLang().

◆ testConvertPlural()

LanguageTest::testConvertPlural (   $expected,
  $number,
  $forms 
)

providePluralData Language::convertPlural

Definition at line 1572 of file LanguageTest.php.

References LanguageClassesTestCase\getLang().

◆ testEmbedBidi()

LanguageTest::testEmbedBidi ( )

◆ testEquals()

LanguageTest::testEquals ( )

Language::equals.

Definition at line 1857 of file LanguageTest.php.

References Language\factory().

◆ testFormatBitrate()

LanguageTest::testFormatBitrate (   $bps,
  $expected,
  $msg 
)

provideFormatBitrate Language::formatBitrate

Definition at line 1166 of file LanguageTest.php.

References LanguageClassesTestCase\getLang().

◆ testFormatDuration()

LanguageTest::testFormatDuration (   $duration,
  $expected,
  $intervals = [] 
)

provideFormatDuration Language::formatDuration

Definition at line 1238 of file LanguageTest.php.

References LanguageClassesTestCase\getLang().

◆ testFormatNum()

LanguageTest::testFormatNum (   $translateNumerals,
  $langCode,
  $number,
  $nocommafy,
  $expected 
)

◆ testFormatSize()

LanguageTest::testFormatSize (   $size,
  $expected,
  $msg 
)

provideFormatSizes Language::formatSize

Definition at line 1103 of file LanguageTest.php.

References LanguageClassesTestCase\getLang().

◆ testFormatTimePeriod()

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

provideFormattableTimes Language::formatTimePeriod

Definition at line 22 of file LanguageTest.php.

References LanguageClassesTestCase\getLang().

◆ testGetNamespaceAliases()

LanguageTest::testGetNamespaceAliases (   $languageCode,
  $subset 
)

provideGetNamespaceAliases Language::getNamespaceAliases

Definition at line 1833 of file LanguageTest.php.

References as, and Language\factory().

◆ testGetParentLanguage()

LanguageTest::testGetParentLanguage (   $code,
  $expected,
  $comment 
)

provideGetParentLanguage Language::getParentLanguage

Definition at line 1809 of file LanguageTest.php.

References $code, $lang, and Language\factory().

◆ testHebrewNumeral()

LanguageTest::testHebrewNumeral (   $num,
  $numerals 
)

provideHebrewNumeralsData Language::hebrewNumeral

Definition at line 1501 of file LanguageTest.php.

References Language\hebrewNumeral().

◆ testIsSupportedLanguage()

LanguageTest::testIsSupportedLanguage (   $code,
  $expected,
  $comment 
)

provideIsSupportedLanguage Language::isSupportedLanguage

Definition at line 1792 of file LanguageTest.php.

References $code, and Language\isSupportedLanguage().

◆ testKnownCldrLanguageTag()

LanguageTest::testKnownCldrLanguageTag ( )

◆ testKnownLanguageTag()

LanguageTest::testKnownLanguageTag (   $code,
  $message = '' 
)

Test Language::isKnownLanguageTag() provideKnownLanguageTags Language::isKnownLanguageTag.

Definition at line 527 of file LanguageTest.php.

References $code, and Language\isKnownLanguageTag().

◆ testLanguageConvertDoubleWidthToSingleWidth()

LanguageTest::testLanguageConvertDoubleWidthToSingleWidth ( )

◆ testLenientLanguageTag()

LanguageTest::testLenientLanguageTag ( )

◆ testListToText()

LanguageTest::testListToText ( )

Language::listToText.

Definition at line 1775 of file LanguageTest.php.

References $lang, $s, and LanguageClassesTestCase\getLang().

◆ testMalformedLanguageTag()

LanguageTest::testMalformedLanguageTag (   $code,
  $message = '' 
)

Negative test for Language::isWellFormedLanguageTag() provideMalformedLanguageTags Language::isWellFormedLanguageTag.

Definition at line 438 of file LanguageTest.php.

References $code, and Language\isWellFormedLanguageTag().

◆ testParseFormattedNumber()

LanguageTest::testParseFormattedNumber (   $langCode,
  $number 
)

Language::parseFormattedNumber parseFormattedNumberProvider.

Definition at line 1718 of file LanguageTest.php.

References $lang, and Language\factory().

◆ testRomanNumerals()

LanguageTest::testRomanNumerals (   $num,
  $numerals 
)

provideRomanNumeralsData Language::romanNumeral

Definition at line 1442 of file LanguageTest.php.

References Language\romanNumeral().

◆ testSprintfDate()

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

provideSprintfDateSamples Language::sprintfDate

Definition at line 608 of file LanguageTest.php.

References LanguageClassesTestCase\getLang().

◆ testSprintfDateNotAllDigitTimestamp()

LanguageTest::testSprintfDateNotAllDigitTimestamp ( )

Test too short timestamp MWException Language::sprintfDate.

Definition at line 600 of file LanguageTest.php.

References LanguageClassesTestCase\getLang().

◆ testSprintfDateNoTtlIfNotNeeded()

LanguageTest::testSprintfDateNoTtlIfNotNeeded ( )

sprintfDate should only calculate a TTL if the caller is going to use it.

Language::sprintfDate

Definition at line 678 of file LanguageTest.php.

References LanguageClassesTestCase\getLang(), and wfTimestampNow().

◆ testSprintfDateNoZone()

LanguageTest::testSprintfDateNoZone (   $format,
  $ts,
  $expected,
  $ignore,
  $msg 
)

sprintfDate should always use UTC when no zone is given.

provideSprintfDateSamples Language::sprintfDate

Definition at line 640 of file LanguageTest.php.

References $res, and LanguageClassesTestCase\getLang().

◆ testSprintfDateTooLongTimestamp()

LanguageTest::testSprintfDateTooLongTimestamp ( )

Test too long timestamp MWException Language::sprintfDate.

Definition at line 591 of file LanguageTest.php.

References LanguageClassesTestCase\getLang().

◆ testSprintfDateTooShortTimestamp()

LanguageTest::testSprintfDateTooShortTimestamp ( )

Test too short timestamp MWException Language::sprintfDate.

Definition at line 582 of file LanguageTest.php.

References LanguageClassesTestCase\getLang().

◆ testSprintfDateTZ()

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

sprintfDate should use passed timezone provideSprintfDateSamples Language::sprintfDate

Definition at line 661 of file LanguageTest.php.

References LanguageClassesTestCase\getLang().

◆ testTranslateBlockExpiry()

LanguageTest::testTranslateBlockExpiry (   $expectedData,
  $str,
  $now,
  $desc 
)

Language::translateBlockExpiry() provideTranslateBlockExpiry.

Definition at line 1642 of file LanguageTest.php.

References $lang, LanguageClassesTestCase\getLang(), and list.

◆ testTruncateForDatabase()

LanguageTest::testTruncateForDatabase ( )

◆ testTruncateForVisual()

LanguageTest::testTruncateForVisual (   $expected,
  $string,
  $length,
  $ellipsis = '...',
  $adjustLength = true 
)

◆ testTruncateHtml()

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

provideHTMLTruncateData Language::truncateHTML

Definition at line 314 of file LanguageTest.php.

References $input, and LanguageClassesTestCase\getLang().

◆ testUnknownLanguageTag()

LanguageTest::testUnknownLanguageTag (   $code,
  $message = '' 
)

Negative tests for Language::isKnownLanguageTag() provideUnKnownLanguageTags Language::isKnownLanguageTag.

Definition at line 563 of file LanguageTest.php.

References $code, and Language\isKnownLanguageTag().

◆ testWellFormedLanguageTag()

LanguageTest::testWellFormedLanguageTag (   $code,
  $message = '' 
)

Test Language::isWellFormedLanguageTag() provideWellFormedLanguageTags Language::isWellFormedLanguageTag.

Definition at line 386 of file LanguageTest.php.

References $code, and Language\isWellFormedLanguageTag().


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