Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7409907
OperatorDictionaryTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
879 B
Referenced Files
None
Subscribers
None
OperatorDictionaryTest.php
View Options
<?php
namespace
MediaWiki\Extension\Math\Tests\WikiTexVC\MMLmappings
;
use
MediaWiki\Extension\Math\WikiTexVC\MMLmappings\OperatorDictionary
;
use
PHPUnit\Framework\TestCase
;
/**
* @covers \MediaWiki\Extension\Math\WikiTexVC\MMLmappings\OperatorDictionary
*/
class
OperatorDictionaryTest
extends
TestCase
{
public
function
testExistingOperatorWithU
()
{
$this
->
assertNull
(
OperatorDictionary
::
getOperatorByKey
(
'
\u
3009'
)
);
$this
->
assertNull
(
OperatorDictionary
::
getOperatorByKey
(
'〉'
)
);
}
public
function
testExistingOperatorNormal
()
{
$op
=
OperatorDictionary
::
getOperatorByKey
(
'!'
);
$this
->
assertIsArray
(
$op
);
$this
->
assertCount
(
1
,
$op
);
}
public
function
testExistingOperatorSpecial
()
{
$op
=
OperatorDictionary
::
getOperatorByKey
(
'>'
);
$this
->
assertIsArray
(
$op
);
$this
->
assertCount
(
2
,
$op
);
$this
->
assertTrue
(
$op
[
1
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 22:42 (1 d, 21 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9b/c1/bfe0f51f271341247b57e5514bf1
Default Alt Text
OperatorDictionaryTest.php (879 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment