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