2014-01-03 14:29:03 +00:00
|
|
|
<?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();
|
2014-03-11 15:53:03 +00:00
|
|
|
$this->assertEquals( $InputCheck->IsValid(), false );
|
2014-01-03 14:29:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @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' )
|
2014-02-09 19:02:15 +00:00
|
|
|
->setConstructorArgs( array( 'some tex input' ) )
|
2014-01-03 14:29:03 +00:00
|
|
|
->getMock();
|
|
|
|
$this->assertNull( $InputCheck->getValidTex() );
|
|
|
|
}
|
|
|
|
}
|