mediawiki-extensions-Math/tests/phpunit/MathInputCheckTest.php
Moritz Schubotz (physikerwelt) fc0faf18c3 Move checking code to a new namespace
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
2020-05-12 21:26:45 +02:00

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() );
}
}