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