MediaWiki REL1_31
LanguageTgTest.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 'tg' => 'г',
21 'tg-latn' => 'g',
22 ],
23 'г'
24 ],
25 [
26 [
27 'tg' => 'g',
28 'tg-latn' => 'g',
29 ],
30 'g'
31 ],
32 ];
33 }
34}
Helping class to run tests using a clean language instance.
LanguageTg TgConverter.
static provideAutoConvertToAllVariants()
testAutoConvertToAllVariants( $result, $value)
provideAutoConvertToAllVariants Language::autoConvertToAllVariants