Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7471744
MMLmunderTest.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
MMLmunderTest.php
View Options
<?php
namespace
phpunit\unit\WikiTexVC\MMLNodes
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmi
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmn
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmunder
;
use
MediaWikiUnitTestCase
;
/**
* @covers \MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmunder
*
* @group Math
*
* @license GPL-2.0-or-later
*/
class
MMLmunderTest
extends
MediaWikiUnitTestCase
{
public
function
testConstructor
()
{
$mover
=
new
MMLmunder
(
''
,
[
'mathvariant'
=>
'bold'
]
);
$this
->
assertEquals
(
'munder'
,
$mover
->
getName
()
);
$this
->
assertEquals
(
[
'mathvariant'
=>
'bold'
],
$mover
->
getAttributes
()
);
}
public
function
testTreeConstructor
()
{
$mi
=
new
MMLmi
(
''
,
[],
'x'
);
$mn
=
new
MMLmn
(
''
,
[],
'5'
);
$mover
=
MMLmunder
::
newSubtree
(
$mi
,
$mn
,
''
,
[
'mathvariant'
=>
'bold'
]
);
$this
->
assertEquals
(
'munder'
,
$mover
->
getName
()
);
$this
->
assertEquals
(
[
'mathvariant'
=>
'bold'
],
$mover
->
getAttributes
()
);
$this
->
assertEquals
(
$mover
->
getChildren
(),
[
$mi
,
$mn
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 08:14 (4 d, 28 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
90/43/8b6efc489ad76cf3d1022ae4b66f
Default Alt Text
MMLmunderTest.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment