Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7438227
BaseMethodsTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
939 B
Referenced Files
None
Subscribers
None
BaseMethodsTest.php
View Options
<?php
namespace
MediaWiki\Extension\Math\Tests\WikiTexVC\MMLmappings
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLmappings\BaseMethods
;
use
PHPUnit\Framework\TestCase
;
/**
* @covers \MediaWiki\Extension\Math\WikiTexVC\MMLmappings\BaseMethods
*/
class
BaseMethodsTest
extends
TestCase
{
public
function
testCheckAndParseOperatorWithU
()
{
$bm
=
new
BaseMethods
();
$this
->
assertNull
(
$bm
->
checkAndParseOperator
(
'
\u
3009'
,
null
,
[],
[],
[]
)
);
$this
->
assertNull
(
$bm
->
checkAndParseOperator
(
'〉'
,
null
,
[],
[],
[]
)
);
}
public
function
testCheckAndParseOperatorNormal
()
{
$bm
=
new
BaseMethods
();
$op
=
$bm
->
checkAndParseOperator
(
'!'
,
null
,
[],
[],
[]
);
$this
->
assertStringContainsString
(
'!</mo>'
,
$op
);
}
public
function
testCheckAndParseOperatorSpecial
()
{
$bm
=
new
BaseMethods
();
$op
=
$bm
->
checkAndParseOperator
(
'>'
,
null
,
[],
[],
[]
);
$this
->
assertStringContainsString
(
'></mo>'
,
$op
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 14:25 (1 d, 8 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c5/1c/eb10497418a24d1e19d344a13008
Default Alt Text
BaseMethodsTest.php (939 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment