Page MenuHomeWickedGov Phorge

BaseMethodsTest.php
No OneTemporary

Size
939 B
Referenced Files
None
Subscribers
None

BaseMethodsTest.php

<?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( '\u3009', null, [], [], [] ) );
$this->assertNull( $bm->checkAndParseOperator( '&#x3009;', 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( '&gt;</mo>', $op );
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 22, 14:25 (1 d, 7 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c5/1c/eb10497418a24d1e19d344a13008
Default Alt Text
BaseMethodsTest.php (939 B)

Event Timeline