mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-15 03:34:10 +00:00
fc0faf18c3
Introduce new namespace \MediaWiki\Extension\Math\ and move checking code to this new namespace. Note, this commit is the first step of Ifd89e2d9cb30fa15cc318f077b434207ed6b7214 Bug: T252390, T187154 Change-Id: I8c93f4b21d4a72ef2d52d4774d69e4ef55d037ec
23 lines
533 B
PHP
23 lines
533 B
PHP
<?php
|
|
|
|
use MediaWiki\Extension\Math\InputCheck\BaseChecker;
|
|
|
|
/**
|
|
* @covers \MediaWiki\Extension\Math\InputCheck\BaseChecker
|
|
*
|
|
* @group Math
|
|
*
|
|
* @license GPL-2.0-or-later
|
|
*/
|
|
class MathInputCheckTest extends MediaWikiTestCase {
|
|
|
|
public function testAbstractClass() {
|
|
$InputCheck = $this->getMockForAbstractClass( BaseChecker::class );
|
|
/** @var BaseChecker $InputCheck */
|
|
$this->assertFalse( $InputCheck->IsValid() );
|
|
$this->assertNull( $InputCheck->getError() );
|
|
$this->assertNull( $InputCheck->getValidTex() );
|
|
}
|
|
|
|
}
|