Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5982798
LanguageFiTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
965 B
Referenced Files
None
Subscribers
None
LanguageFiTest.php
View Options
<?php
declare
(
strict_types
=
1
);
/**
* @group Language
* @covers LanguageFi
*/
class
LanguageFiTest
extends
LanguageClassesTestCase
{
/**
* @dataProvider provideConvertGrammar
*/
public
function
testConvertGrammar
(
string
$word
,
string
$case
,
string
$expected
):
void
{
$this
->
assertSame
(
$expected
,
$this
->
getLang
()->
convertGrammar
(
$word
,
$case
)
);
}
public
static
function
provideConvertGrammar
():
iterable
{
$wordCaseMappings
=
[
'talo'
=>
[
'genitive'
=>
'talon'
,
'elative'
=>
'talosta'
,
'partitive'
=>
'taloa'
,
'illative'
=>
'taloon'
,
'inessive'
=>
'talossa'
,
],
'pastöroitu'
=>
[
'partitive'
=>
'pastöroitua'
,
],
'Wikipedia'
=>
[
'elative'
=>
'Wikipediasta'
,
'partitive'
=>
'Wikipediaa'
,
],
];
foreach
(
$wordCaseMappings
as
$word
=>
$caseMappings
)
{
foreach
(
$caseMappings
as
$case
=>
$expected
)
{
yield
"$word $case"
=>
[
(
string
)
$word
,
$case
,
$expected
];
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 22:33 (1 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d0/ff/6c25899820307ccebeb4e930507a
Default Alt Text
LanguageFiTest.php (965 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment