mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2025-01-06 11:54:10 +00:00
129f0e4bcc
... and remove some actual copy-paste mistakes. Change-Id: Id2fd83edff774a7f07b0f5436cefe2bf5c0a63f0
39 lines
859 B
PHP
39 lines
859 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( array( 'some tex input' ) )
|
|
->getMock();
|
|
$this->assertNull( $InputCheck->getValidTex() );
|
|
}
|
|
}
|