Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4140583
LanguageNlTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
909 B
Referenced Files
None
Subscribers
None
LanguageNlTest.php
View Options
<?php
/**
* @author Santhosh Thottingal
* @copyright Copyright © 2011, Santhosh Thottingal
* @file
*/
/**
* @group Language
*/
class
LanguageNlTest
extends
LanguageClassesTestCase
{
/**
* @covers \MediaWiki\Language\Language::formatNum
* @dataProvider provideFormatNum
*/
public
function
testFormatNum
(
$unformatted
,
$formatted
)
{
$this
->
assertEquals
(
$formatted
,
$this
->
getLang
()->
formatNum
(
$unformatted
)
);
}
public
static
function
provideFormatNum
()
{
return
[
[
'1234567'
,
'1.234.567'
],
[
'12345'
,
'12.345'
],
[
'1'
,
'1'
],
[
'123'
,
'123'
],
[
'1234'
,
'1.234'
],
[
'12345.56'
,
'12.345,56'
],
[
'.1234556'
,
',1234556'
],
[
'12345679812345678'
,
'12.345.679.812.345.678'
],
[
'.12345'
,
',12345'
],
[
'-1200000'
,
'−1.200.000'
],
[
'-98'
,
'−98'
],
[
-
98
,
'−98'
],
[
-
12345678
,
'−12.345.678'
],
[
''
,
''
],
[
null
,
''
]
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 15:35 (3 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2b/68/2c8d2ff31b10f50e9a43aaba2ff1
Default Alt Text
LanguageNlTest.php (909 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment