Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7432566
MMLmstyleTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
904 B
Referenced Files
None
Subscribers
None
MMLmstyleTest.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\MMLmstyle
;
use
MediaWikiUnitTestCase
;
/**
* @covers \MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmstyle
*
* @group Math
*
* @license GPL-2.0-or-later
*/
class
MMLmstyleTest
extends
MediaWikiUnitTestCase
{
public
function
testConstructor
()
{
$mi
=
new
MMLmi
(
''
,
[],
'x'
);
$mo
=
new
MMLmo
(
''
,
[],
'+'
);
$mn
=
new
MMLmn
(
''
,
[],
'5'
);
$mstyle
=
new
MMLmstyle
(
''
,
[
'mathvariant'
=>
'bold'
],
$mi
,
$mo
,
$mn
);
$this
->
assertEquals
(
'mstyle'
,
$mstyle
->
getName
()
);
$this
->
assertEquals
(
[
'mathvariant'
=>
'bold'
],
$mstyle
->
getAttributes
()
);
$this
->
assertEquals
(
$mstyle
->
getChildren
(),
[
$mi
,
$mo
,
$mn
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 11:28 (1 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ce/fb/0b0f7275d1df9a02a7478da6b033
Default Alt Text
MMLmstyleTest.php (904 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment