Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7464651
MMLmathTest.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
MMLmathTest.php
View Options
<?php
namespace
MediaWiki\Extension\Math\Tests\WikiTexVC\MMLNodes
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLmappings\TexConstants\Variants
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmath
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmi
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmn
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmo
;
use
MediaWikiUnitTestCase
;
/**
* @covers \MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmath
*
* @group Math
*
* @license GPL-2.0-or-later
*/
class
MMLmathTest
extends
MediaWikiUnitTestCase
{
public
function
testConstructor
()
{
$mi
=
new
MMLmi
(
''
,
[],
'x'
);
$mo
=
new
MMLmo
(
''
,
[],
'+'
);
$mn
=
new
MMLmn
(
''
,
[],
'5'
);
$mmath
=
new
MMLmath
(
''
,
[
'mathvariant'
=>
Variants
::
BOLD
],
$mi
,
$mo
,
$mn
);
$this
->
assertEquals
(
'math'
,
$mmath
->
getName
()
);
$this
->
assertEquals
(
[
'mathvariant'
=>
Variants
::
BOLD
,
'xmlns'
=>
'http://www.w3.org/1998/Math/MathML'
],
$mmath
->
getAttributes
()
);
$this
->
assertEquals
(
$mmath
->
getChildren
(),
[
$mi
,
$mo
,
$mn
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 04:41 (3 d, 17 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cb/66/000073b1d45150a6bd5bc67a549c
Default Alt Text
MMLmathTest.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment