Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4132721
GanConverterTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
711 B
Referenced Files
None
Subscribers
None
GanConverterTest.php
View Options
<?php
/**
* @group Language
* @covers \GanConverter
*/
class
GanConverterTest
extends
MediaWikiIntegrationTestCase
{
use
LanguageConverterTestTrait
;
/**
* @dataProvider provideAutoConvertToAllVariants
*/
public
function
testAutoConvertToAllVariants
(
$result
,
$value
)
{
$this
->
assertEquals
(
$result
,
$this
->
getLanguageConverter
()->
autoConvertToAllVariants
(
$value
)
);
}
public
static
function
provideAutoConvertToAllVariants
()
{
return
[
// zh2Hans
[
[
'gan'
=>
'㑯'
,
'gan-hans'
=>
'㑔'
,
'gan-hant'
=>
'㑯'
,
],
'㑯'
],
// zh2Hant
[
[
'gan'
=>
'㐷'
,
'gan-hans'
=>
'㐷'
,
'gan-hant'
=>
'傌'
,
],
'㐷'
],
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 11:45 (3 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
aa/5b/7a9d818a5a342c60c34fcfbce459
Default Alt Text
GanConverterTest.php (711 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment