Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7418256
MMLmsubsupTest.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
MMLmsubsupTest.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\MMLmo
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmsubsup
;
use
MediaWikiUnitTestCase
;
/**
* @covers \MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmsubsup
*
* @group Math
*
* @license GPL-2.0-or-later
*/
class
MMLmsubsupTest
extends
MediaWikiUnitTestCase
{
public
function
testConstructor
()
{
$mrow
=
new
MMLmsubsup
(
''
,
[
'mathvariant'
=>
'bold'
]
);
$this
->
assertEquals
(
'msubsup'
,
$mrow
->
getName
()
);
$this
->
assertEquals
(
[
'mathvariant'
=>
'bold'
],
$mrow
->
getAttributes
()
);
}
public
function
testTreeConstructor
()
{
$mo
=
new
MMLmo
(
''
,
[],
'∫'
);
$mi
=
new
MMLmi
(
''
,
[],
'x'
);
$mn
=
new
MMLmn
(
''
,
[],
'1'
);
$mrow
=
MMLmsubsup
::
newSubtree
(
$mo
,
$mi
,
$mn
,
''
,
[
'mathvariant'
=>
'bold'
]
);
$this
->
assertEquals
(
'msubsup'
,
$mrow
->
getName
()
);
$this
->
assertEquals
(
[
'mathvariant'
=>
'bold'
],
$mrow
->
getAttributes
()
);
$this
->
assertEquals
(
$mrow
->
getChildren
(),
[
$mo
,
$mi
,
$mn
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 03:49 (1 d, 8 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
21/61/c63bf72d5c7adece4d17adb8bedb
Default Alt Text
MMLmsubsupTest.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment