mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-14 19:26:08 +00:00
94b035b26a
* Include generated tests for a better test coverage of the Math extension. * Compiles texvc in testsuite (if required) * Test generator now included * Replaces the old parser tests * Fixes whitspace issues Bug: 61090 Change-Id: Iff7eeb5ee72137492c3f6659e4d4d106e5715586
34 lines
863 B
PHP
34 lines
863 B
PHP
<?php
|
|
/**
|
|
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-09-24 at 03:36:12.
|
|
*/
|
|
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() );
|
|
}
|
|
}
|