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