Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5988081
LanguageZhTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
593 B
Referenced Files
None
Subscribers
None
LanguageZhTest.php
View Options
<?php
use
MediaWiki\MainConfigNames
;
/**
* @covers \LanguageZh
*/
class
LanguageZhTest
extends
LanguageClassesTestCase
{
public
function
testSegmentForDiff
()
{
$this
->
overrideConfigValue
(
MainConfigNames
::
DiffEngine
,
'php'
);
$lhs
=
'维基'
;
$rhs
=
'维基百科'
;
$diff
=
TextSlotDiffRenderer
::
diff
(
$lhs
,
$rhs
,
[
'contentLanguage'
=>
'zh'
]
);
// Check that only the second part is highlighted, and word segmentation markers are not present
$this
->
assertStringContainsString
(
'<div>维基<ins class="diffchange diffchange-inline">百科</ins></div>'
,
$diff
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 4, 00:41 (2 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
db/61/c8a9ac48a56846fca8c5fc60ee44
Default Alt Text
LanguageZhTest.php (593 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment