Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7400487
MMLmphantomTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
922 B
Referenced Files
None
Subscribers
None
MMLmphantomTest.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\MMLmphantom
;
use
MediaWikiUnitTestCase
;
/**
* @covers \MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmphantom
*
* @group Math
*
* @license GPL-2.0-or-later
*/
class
MMLmphantomTest
extends
MediaWikiUnitTestCase
{
public
function
testConstructor
()
{
$mi
=
new
MMLmi
(
''
,
[],
'x'
);
$mo
=
new
MMLmo
(
''
,
[],
'+'
);
$mn
=
new
MMLmn
(
''
,
[],
'5'
);
$mphantom
=
new
MMLmphantom
(
''
,
[
'mathvariant'
=>
'bold'
],
$mi
,
$mo
,
$mn
);
$this
->
assertEquals
(
'mphantom'
,
$mphantom
->
getName
()
);
$this
->
assertEquals
(
[
'mathvariant'
=>
'bold'
],
$mphantom
->
getAttributes
()
);
$this
->
assertEquals
(
$mphantom
->
getChildren
(),
[
$mi
,
$mo
,
$mn
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 16:43 (10 h, 42 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
61/63/029ae9584270191c592c0cc07044
Default Alt Text
MMLmphantomTest.php (922 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment