mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-01 02:36:47 +00:00
88546ae1ad
* currently the phpunit tests are not triggered by jenkins * some test can't be re-enabled possible reasons: ** the texvc and texvccheck binaries are not available from jenkins ** the binaries can not be generated ** the path to the binaries are not set up correctly Bug: T142120 Change-Id: I0c8fe5ad652c4663eeb029781521acbf56e42bad
38 lines
859 B
PHP
38 lines
859 B
PHP
<?php
|
|
|
|
/**
|
|
* @covers MathInputCheck
|
|
*
|
|
* @group Math
|
|
*
|
|
* @license GPL-2.0-or-later
|
|
*/
|
|
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() );
|
|
}
|
|
}
|