Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7437331
MMLmoverTest.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
MMLmoverTest.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\MMLmover
;
use
MediaWikiUnitTestCase
;
/**
* @covers \MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmover
*
* @group Math
*
* @license GPL-2.0-or-later
*/
class
MMLmoverTest
extends
MediaWikiUnitTestCase
{
public
function
testConstructor
()
{
$mover
=
new
MMLmover
(
''
,
[
'mathvariant'
=>
Variants
::
BOLD
]
);
$this
->
assertEquals
(
'mover'
,
$mover
->
getName
()
);
$this
->
assertEquals
(
[
'mathvariant'
=>
Variants
::
BOLD
],
$mover
->
getAttributes
()
);
}
public
function
testTreeConstructor
()
{
$mi
=
new
MMLmi
(
''
,
[],
'x'
);
$mn
=
new
MMLmn
(
''
,
[],
'5'
);
$mover
=
MMLmover
::
newSubtree
(
$mi
,
$mn
,
''
,
[
'mathvariant'
=>
Variants
::
BOLD
]
);
$this
->
assertEquals
(
'mover'
,
$mover
->
getName
()
);
$this
->
assertEquals
(
[
'mathvariant'
=>
Variants
::
BOLD
],
$mover
->
getAttributes
()
);
$this
->
assertEquals
(
$mover
->
getChildren
(),
[
$mi
,
$mn
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 13:56 (6 h, 51 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8c/eb/2303b849002b1ed38509dcb2a1c4
Default Alt Text
MMLmoverTest.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment