mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-23 23:25:02 +00:00
852eba3c9e
* Get rid of a few more MockBuilders and mocks that aren't needed. * Make sure the original constructor is always called. This is highly relevant for I263a711. * Fix mixed order in assertions. In PHP, the expected value comes first. * Add some missing inline @var type hints. Change-Id: Ia15d62af56dfdb61bc2514aa994ce3d4ecd6e077
21 lines
452 B
PHP
21 lines
452 B
PHP
<?php
|
|
|
|
/**
|
|
* @covers \MathInputCheck
|
|
*
|
|
* @group Math
|
|
*
|
|
* @license GPL-2.0-or-later
|
|
*/
|
|
class MathInputCheckTest extends MediaWikiTestCase {
|
|
|
|
public function testAbstractClass() {
|
|
$InputCheck = $this->getMockForAbstractClass( MathInputCheck::class );
|
|
/** @var MathInputCheck $InputCheck */
|
|
$this->assertFalse( $InputCheck->IsValid() );
|
|
$this->assertNull( $InputCheck->getError() );
|
|
$this->assertNull( $InputCheck->getValidTex() );
|
|
}
|
|
|
|
}
|