2014-01-03 14:29:03 +00:00
|
|
|
<?php
|
2016-02-12 16:57:37 +00:00
|
|
|
|
2014-01-03 14:29:03 +00:00
|
|
|
/**
|
2019-11-26 09:59:54 +00:00
|
|
|
* @covers \MathInputCheck
|
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() {
|
|
|
|
$InputCheck = $this->getMockForAbstractClass( MathInputCheck::class );
|
|
|
|
/** @var MathInputCheck $InputCheck */
|
|
|
|
$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
|
|
|
}
|