MediaWiki  1.23.8
LocalisationCacheTest.php
Go to the documentation of this file.
1 <?php
2 
7  public function testPuralRulesFallback() {
9 
10  $this->assertEquals(
11  $cache->getItem( 'ar', 'pluralRules' ),
12  $cache->getItem( 'arz', 'pluralRules' ),
13  'arz plural rules (undefined) fallback to ar (defined)'
14  );
15 
16  $this->assertEquals(
17  $cache->getItem( 'ar', 'compiledPluralRules' ),
18  $cache->getItem( 'arz', 'compiledPluralRules' ),
19  'arz compiled plural rules (undefined) fallback to ar (defined)'
20  );
21 
22  $this->assertNotEquals(
23  $cache->getItem( 'ksh', 'pluralRules' ),
24  $cache->getItem( 'de', 'pluralRules' ),
25  'ksh plural rules (defined) dont fallback to de (defined)'
26  );
27 
28  $this->assertNotEquals(
29  $cache->getItem( 'ksh', 'compiledPluralRules' ),
30  $cache->getItem( 'de', 'compiledPluralRules' ),
31  'ksh compiled plural rules (defined) dont fallback to de (defined)'
32  );
33  }
34 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
LocalisationCacheTest
@covers LocalisationCache
Definition: LocalisationCacheTest.php:6
LocalisationCacheTest\testPuralRulesFallback
testPuralRulesFallback()
Definition: LocalisationCacheTest.php:7
Language\getLocalisationCache
static getLocalisationCache()
Get the LocalisationCache instance.
Definition: Language.php:443
MediaWikiTestCase
Definition: MediaWikiTestCase.php:6
$cache
$cache
Definition: mcc.php:32