MediaWiki REL1_31
LanguageShiTest.php
Go to the documentation of this file.
1<?php
2
12 public function testAutoConvertToAllVariants( $result, $value ) {
13 $this->assertEquals( $result, $this->getLang()->autoConvertToAllVariants( $value ) );
14 }
15
16 public static function provideAutoConvertToAllVariants() {
17 return [
18 [
19 [
20 'shi' => 'AƔ',
21 'shi-tfng' => 'ⴰⵖ',
22 'shi-latn' => 'AƔ',
23 ],
24 'AƔ'
25 ],
26 [
27 [
28 'shi' => 'ⴰⵖ',
29 'shi-tfng' => 'ⴰⵖ',
30 'shi-latn' => 'aɣ',
31 ],
32 'ⴰⵖ'
33 ],
34 ];
35 }
36}
Helping class to run tests using a clean language instance.
LanguageShi ShiConverter.
testAutoConvertToAllVariants( $result, $value)
provideAutoConvertToAllVariants Language::autoConvertToAllVariants
static provideAutoConvertToAllVariants()