MediaWiki REL1_30
LanguageTgTest.php
Go to the documentation of this file.
1<?php
2
8 public function testAutoConvertToAllVariants( $result, $value ) {
9 $this->assertEquals( $result, $this->getLang()->autoConvertToAllVariants( $value ) );
10 }
11
12 public static function provideAutoConvertToAllVariants() {
13 return [
14 [
15 [
16 'tg' => 'г',
17 'tg-latn' => 'g',
18 ],
19 'г'
20 ],
21 [
22 [
23 'tg' => 'g',
24 'tg-latn' => 'g',
25 ],
26 'g'
27 ],
28 ];
29 }
30}
Helping class to run tests using a clean language instance.
static provideAutoConvertToAllVariants()
testAutoConvertToAllVariants( $result, $value)
provideAutoConvertToAllVariants Language::autoConvertToAllVariants