mediawiki-extensions-Math/tests/phpunit/MathInputCheckTest.php
Thiemo Kreuz b189280467 Make all @covers tags absolute, and fix some
Some mentioned a "__constructor", which should be "__construct".

The leading backslash is not strictly needed by all tools. But some
need it. I learned it's best practice to always have it.

Change-Id: I22fe3a3b4828c02ab5a457aba9af5af1c72567ea
2019-11-26 11:01:23 +01:00

38 lines
878 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::class )->getMock();
$this->assertEquals( $InputCheck->IsValid(), false );
}
/**
* @covers \MathInputCheck::getError
* @todo Implement testGetError().
*/
public function testGetError() {
$InputCheck = $this->getMockBuilder( MathInputCheck::class )->getMock();
$this->assertNull( $InputCheck->getError() );
}
/**
* @covers \MathInputCheck::getValidTex
*/
public function testGetValidTex() {
$InputCheck = $this->getMockBuilder( MathInputCheck::class )
->setConstructorArgs( [ 'some tex input' ] )
->getMock();
$this->assertNull( $InputCheck->getValidTex() );
}
}