2014-01-03 14:29:03 +00:00
|
|
|
<?php
|
2016-02-12 16:57:37 +00:00
|
|
|
|
2020-05-12 16:41:04 +00:00
|
|
|
use MediaWiki\Extension\Math\InputCheck\BaseChecker;
|
|
|
|
|
2014-01-03 14:29:03 +00:00
|
|
|
/**
|
2020-05-12 16:41:04 +00:00
|
|
|
* @covers \MediaWiki\Extension\Math\InputCheck\BaseChecker
|
2016-02-12 16:57:37 +00:00
|
|
|
*
|
2014-07-24 00:12:14 +00:00
|
|
|
* @group Math
|
2016-02-12 16:57:37 +00:00
|
|
|
*
|
2018-04-13 14:06:39 +00:00
|
|
|
* @license GPL-2.0-or-later
|
2014-01-03 14:29:03 +00:00
|
|
|
*/
|
2017-06-20 07:11:57 +00:00
|
|
|
class MathInputCheckTest extends MediaWikiTestCase {
|
2014-01-03 14:29:03 +00:00
|
|
|
|
2019-11-26 11:01:30 +00:00
|
|
|
public function testAbstractClass() {
|
2020-05-12 16:41:04 +00:00
|
|
|
$InputCheck = $this->getMockForAbstractClass( BaseChecker::class );
|
|
|
|
/** @var BaseChecker $InputCheck */
|
2019-11-26 11:01:30 +00:00
|
|
|
$this->assertFalse( $InputCheck->IsValid() );
|
2014-01-03 14:29:03 +00:00
|
|
|
$this->assertNull( $InputCheck->getError() );
|
|
|
|
$this->assertNull( $InputCheck->getValidTex() );
|
|
|
|
}
|
2019-11-26 11:01:30 +00:00
|
|
|
|
2014-01-03 14:29:03 +00:00
|
|
|
}
|