mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-15 03:34:10 +00:00
fbd17b4fef
The following sniffs are failing and were disabled: * MediaWiki.Commenting.FunctionComment.DuplicateReturn * MediaWiki.Commenting.FunctionComment.MissingParamComment * MediaWiki.Commenting.FunctionComment.MissingParamName * MediaWiki.Commenting.FunctionComment.MissingParamTag * MediaWiki.Commenting.FunctionComment.MissingReturn * MediaWiki.Commenting.FunctionComment.ParamNameNoMatch * MediaWiki.Commenting.FunctionComment.WrongStyle * MediaWiki.FunctionComment.Missing.Protected * MediaWiki.FunctionComment.Missing.Public * MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment Change-Id: I46c900a5652a6560d18be6cd67badc37ed7f8d97
38 lines
854 B
PHP
38 lines
854 B
PHP
<?php
|
|
|
|
/**
|
|
* @covers MathInputCheck
|
|
*
|
|
* @group Math
|
|
*
|
|
* @licence GNU GPL v2+
|
|
*/
|
|
class MathInputCheckTest extends MediaWikiTestCase {
|
|
/**
|
|
* @covers MathInputCheck::isValid
|
|
*/
|
|
public function testIsValid() {
|
|
$InputCheck = $this->getMockBuilder( 'MathInputCheck' )->getMock();
|
|
$this->assertEquals( $InputCheck->IsValid(), false );
|
|
}
|
|
|
|
/**
|
|
* @covers MathInputCheck::getError
|
|
* @todo Implement testGetError().
|
|
*/
|
|
public function testGetError() {
|
|
$InputCheck = $this->getMockBuilder( 'MathInputCheck' )->getMock();
|
|
$this->assertNull( $InputCheck->getError() );
|
|
}
|
|
|
|
/**
|
|
* @covers MathInputCheck::getValidTex
|
|
*/
|
|
public function testGetValidTex() {
|
|
$InputCheck = $this->getMockBuilder( 'MathInputCheck' )
|
|
->setConstructorArgs( [ 'some tex input' ] )
|
|
->getMock();
|
|
$this->assertNull( $InputCheck->getValidTex() );
|
|
}
|
|
}
|