MediaWiki
REL1_32
LanguageArqTest.php
Go to the documentation of this file.
1
<?php
10
class
LanguageArqTest
extends
LanguageClassesTestCase
{
15
public
function
testFormatNum
( $result,
$value
) {
16
$this->assertEquals( $result, $this->
getLang
()->formatNum(
$value
) );
17
}
18
19
public
static
function
provideNumber
() {
20
return
[
21
[
'1.234.567'
,
'1234567'
],
22
[
'-12,89'
, -12.89 ],
23
];
24
}
25
26
}
LanguageArqTest
Tests for MediaWiki languages/LanguageArq.php.
Definition
LanguageArqTest.php:10
LanguageArqTest\testFormatNum
testFormatNum( $result, $value)
provideNumber Language::formatNum
Definition
LanguageArqTest.php:15
LanguageArqTest\provideNumber
static provideNumber()
Definition
LanguageArqTest.php:19
LanguageClassesTestCase
Helping class to run tests using a clean language instance.
Definition
LanguageClassesTestCase.php:21
LanguageClassesTestCase\getLang
getLang()
Definition
LanguageClassesTestCase.php:41
$value
$value
Definition
styleTest.css.php:49
tests
phpunit
languages
classes
LanguageArqTest.php
Generated on Mon Nov 25 2024 15:59:00 for MediaWiki by
1.10.0