Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7409282
MMLmunderoverTest.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
MMLmunderoverTest.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\MMLmi
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmn
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmo
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmunderover
;
use
MediaWikiUnitTestCase
;
/**
* @covers \MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmunderover
*
* @group Math
*
* @license GPL-2.0-or-later
*/
class
MMLmunderoverTest
extends
MediaWikiUnitTestCase
{
public
function
testConstructor
()
{
$munderover
=
new
MMLmunderover
(
''
,
[
'mathvariant'
=>
Variants
::
BOLD
]
);
$this
->
assertEquals
(
'munderover'
,
$munderover
->
getName
()
);
$this
->
assertEquals
(
[
'mathvariant'
=>
Variants
::
BOLD
],
$munderover
->
getAttributes
()
);
}
public
function
testTreeConstructor
()
{
$mo
=
new
MMLmo
(
''
,
[],
'∑'
);
$mi
=
new
MMLmi
(
''
,
[],
'x'
);
$mn
=
new
MMLmn
(
''
,
[],
'5'
);
$munderover
=
MMLmunderover
::
newSubtree
(
$mo
,
$mi
,
$mn
,
''
,
[
'mathvariant'
=>
Variants
::
BOLD
]
);
$this
->
assertEquals
(
'munderover'
,
$munderover
->
getName
()
);
$this
->
assertEquals
(
[
'mathvariant'
=>
Variants
::
BOLD
],
$munderover
->
getAttributes
()
);
$this
->
assertEquals
(
$munderover
->
getChildren
(),
[
$mo
,
$mi
,
$mn
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 22:24 (1 d, 19 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cc/3e/d74d3b4067ef7acfe720d27a42b9
Default Alt Text
MMLmunderoverTest.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment