mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-23 21:02:51 +00:00
130c3f44f1
Change-Id: If8ec86c4b70d7d78d30cab6f9529af1cd0c2ea52
34 lines
802 B
PHP
34 lines
802 B
PHP
<?php
|
|
/**
|
|
* @group Math
|
|
*/
|
|
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() );
|
|
}
|
|
}
|