Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7397928
MMLarrayTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
975 B
Referenced Files
None
Subscribers
None
MMLarrayTest.php
View Options
<?php
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLarray
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmi
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmn
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLmo
;
/**
* @covers \MediaWiki\Extension\Math\WikiTexVC\MMLnodes\MMLarray
*
* @group Math
*
* @license GPL-2.0-or-later
*/
class
MMLarrayTest
extends
MediaWikiIntegrationTestCase
{
public
function
testConstructor
()
{
$mi
=
new
MMLmi
(
''
,
[],
'x'
);
$mo
=
new
MMLmo
(
''
,
[],
'+'
);
$mn
=
new
MMLmn
(
''
,
[],
'5'
);
$array
=
new
MMLarray
(
$mi
,
$mo
,
$mn
);
$this
->
assertSame
(
''
,
$array
->
getName
()
);
$this
->
assertEquals
(
[],
$array
->
getAttributes
()
);
$this
->
assertEquals
(
$array
->
getChildren
(),
[
$mi
,
$mo
,
$mn
]
);
}
public
function
testToString
()
{
$mi
=
new
MMLmi
(
''
,
[],
'a'
);
$mn
=
new
MMLmn
(
''
,
[],
'1'
);
$array
=
new
MMLarray
(
$mi
,
$mn
);
$this
->
assertEquals
(
'<mi>a</mi><mn>1</mn>'
,
(
string
)
$array
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 14:56 (6 d, 11 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2e/c8/3ca2b227cb09b6cca9bc2e86e1ad
Default Alt Text
MMLarrayTest.php (975 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment