Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5983456
LanguageOsTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
LanguageOsTest.php
View Options
<?php
declare
(
strict_types
=
1
);
/**
* @group Language
* @covers LanguageOs
*/
class
LanguageOsTest
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
=
[
'бæстæ'
=>
[
'genitive'
=>
'бæсты'
,
'allative'
=>
'бæстæм'
,
'dative'
=>
'бæстæн'
,
'ablative'
=>
'бæстæй'
,
'inessive'
=>
'бæст'
,
'superessive'
=>
'бæстыл'
,
],
'лæппу'
=>
[
'genitive'
=>
'лæппуйы'
,
'allative'
=>
'лæппумæ'
,
'dative'
=>
'лæппуйæн'
,
'ablative'
=>
'лæппуйæ'
,
'inessive'
=>
'лæппу'
,
'superessive'
=>
'лæппуйыл'
,
],
'2011'
=>
[
'equative'
=>
'2011-ау'
,
],
];
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:52 (1 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
69/0f/08c28049d52b060ae06e142fbe40
Default Alt Text
LanguageOsTest.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment