MediaWiki
REL1_32
LanguageTgTest.php
Go to the documentation of this file.
1
<?php
2
7
class
LanguageTgTest
extends
LanguageClassesTestCase
{
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
}
LanguageClassesTestCase
Helping class to run tests using a clean language instance.
Definition
LanguageClassesTestCase.php:21
LanguageClassesTestCase\getLang
getLang()
Definition
LanguageClassesTestCase.php:41
LanguageTgTest
LanguageTg TgConverter.
Definition
LanguageTgTest.php:7
LanguageTgTest\provideAutoConvertToAllVariants
static provideAutoConvertToAllVariants()
Definition
LanguageTgTest.php:16
LanguageTgTest\testAutoConvertToAllVariants
testAutoConvertToAllVariants( $result, $value)
provideAutoConvertToAllVariants Language::autoConvertToAllVariants
Definition
LanguageTgTest.php:12
$value
$value
Definition
styleTest.css.php:49
tests
phpunit
languages
classes
LanguageTgTest.php
Generated on Mon Nov 25 2024 15:59:02 for MediaWiki by
1.10.0