Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5979610
MathLaTeXMLTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
918 B
Referenced Files
None
Subscribers
None
MathLaTeXMLTest.php
View Options
<?php
use
MediaWiki\Extension\Math\MathLaTeXML
;
/**
* Test the LaTeXML output format.
*
* @covers \MediaWiki\Extension\Math\MathLaTeXML
*
* @group Math
*
* @license GPL-2.0-or-later
*/
class
MathLaTeXMLTest
extends
MediaWikiIntegrationTestCase
{
/**
* Tests the serialization of the LaTeXML settings
* @covers \MediaWiki\Extension\Math\MathLaTeXML::serializeSettings
*/
public
function
testSerializeSettings
()
{
$renderer
=
new
MathLaTeXML
();
$sampleSettings
=
[
'k1'
=>
'v1'
,
'k2&='
=>
'v2 + & *üö'
,
'k3'
=>
[
'v3A'
,
'v3b'
]
];
$expected
=
'k1=v1&k2%26%3D=v2+%2B+%26+%2A%C3%BC%C3%B6&k3=v3A&k3=v3b'
;
$this
->
assertEquals
(
$expected
,
$renderer
->
serializeSettings
(
$sampleSettings
),
'test serialization of array settings'
);
$this
->
assertEquals
(
$expected
,
$renderer
->
serializeSettings
(
$expected
),
'test serialization of a string setting'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 20:59 (5 d, 13 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ca/59/1c1385b95ca7c8b53698664e5ee2
Default Alt Text
MathLaTeXMLTest.php (918 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment