MediaWiki
REL1_31
LanguageGaTest.php
Go to the documentation of this file.
1
<?php
9
class
LanguageGaTest
extends
LanguageClassesTestCase
{
14
public
function
testPlural
( $result,
$value
) {
15
$forms = [
'one'
,
'two'
,
'other'
];
16
$this->assertEquals( $result, $this->
getLang
()->convertPlural(
$value
, $forms ) );
17
}
18
23
public
function
testGetPluralRuleType
( $result,
$value
) {
24
$this->assertEquals( $result, $this->
getLang
()->getPluralRuleType(
$value
) );
25
}
26
27
public
static
function
providePlural
() {
28
return
[
29
[
'other'
, 0 ],
30
[
'one'
, 1 ],
31
[
'two'
, 2 ],
32
[
'other'
, 200 ],
33
];
34
}
35
}
LanguageClassesTestCase
Helping class to run tests using a clean language instance.
Definition
LanguageClassesTestCase.php:21
LanguageClassesTestCase\getLang
getLang()
Definition
LanguageClassesTestCase.php:41
LanguageGaTest
Tests for MediaWiki languages/classes/LanguageGa.php.
Definition
LanguageGaTest.php:9
LanguageGaTest\testGetPluralRuleType
testGetPluralRuleType( $result, $value)
providePlural Language::getPluralRuleType
Definition
LanguageGaTest.php:23
LanguageGaTest\testPlural
testPlural( $result, $value)
providePlural Language::convertPlural
Definition
LanguageGaTest.php:14
LanguageGaTest\providePlural
static providePlural()
Definition
LanguageGaTest.php:27
$value
$value
Definition
styleTest.css.php:45
tests
phpunit
languages
classes
LanguageGaTest.php
Generated on Mon Nov 25 2024 15:36:40 for MediaWiki by
1.10.0