Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5979626
WuuConverterTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
721 B
Referenced Files
None
Subscribers
None
WuuConverterTest.php
View Options
<?php
/**
* @group Language
* @covers \WuuConverter
*/
class
WuuConverterTest
extends
MediaWikiIntegrationTestCase
{
use
LanguageConverterTestTrait
;
/**
* @dataProvider provideAutoConvertToAllVariants
*/
public
function
testAutoConvertToAllVariants
(
$result
,
$value
)
{
$this
->
assertEquals
(
$result
,
$this
->
getLanguageConverter
()->
autoConvertToAllVariants
(
$value
)
);
}
public
static
function
provideAutoConvertToAllVariants
()
{
return
[
// wuuHant2Hans
[
[
'wuu'
=>
'㑯'
,
'wuu-hans'
=>
'㑔'
,
'wuu-hant'
=>
'㑯'
,
],
'㑯'
],
// wuuHans2Hant
[
[
'wuu'
=>
'㐷'
,
'wuu-hans'
=>
'㐷'
,
'wuu-hant'
=>
'傌'
,
],
'㐷'
],
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 21:00 (5 d, 1 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e3/32/d6fea586bda32e9b44de6f5fbb96
Default Alt Text
WuuConverterTest.php (721 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment