Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7403817
MMLmtdTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
679 B
Referenced Files
None
Subscribers
None
MMLmtdTest.php
View Options
<?php
namespace
phpunit\unit\WikiTexVC\MMLNodes
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmi
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmtd
;
use
MediaWikiUnitTestCase
;
/**
* @covers \MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmtd
*
* @group Math
*
* @license GPL-2.0-or-later
*/
class
MMLmtdTest
extends
MediaWikiUnitTestCase
{
public
function
testConstructor
()
{
$mi
=
new
MMLmi
(
''
,
[],
'x'
);
$mtd
=
new
MMLmtd
(
''
,
[
'mathvariant'
=>
'bold'
],
$mi
);
$this
->
assertEquals
(
'mtd'
,
$mtd
->
getName
()
);
$this
->
assertEquals
(
[
'mathvariant'
=>
'bold'
],
$mtd
->
getAttributes
()
);
$this
->
assertEquals
(
$mtd
->
getChildren
(),
[
$mi
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 18:50 (23 h, 5 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
01/15/4f7c6a2544756ff511072324ee66
Default Alt Text
MMLmtdTest.php (679 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment