Add more complete PHPDoc tags to all tests
... and remove some actual copy-paste mistakes. Change-Id: Id2fd83edff774a7f07b0f5436cefe2bf5c0a63f0
This commit is contained in:
parent
b69c1c4f52
commit
129f0e4bcc
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PHPUnit tests to test the wide range of all typical use cases for formulae at Wikipedia.
|
||||
* To generate the page https://www.mediawiki.org/wiki/Extension:Math/CoverageTest is used to
|
||||
@ -16,8 +17,12 @@
|
||||
* /vagrant/mediawiki/extensions/Math/tests/MathCoverageTest.php</code>
|
||||
* (If you don't use sudo you might have problems with the permissions set at vagrant.)
|
||||
*
|
||||
* @covers MathRenderer
|
||||
*
|
||||
* @group Extensions
|
||||
* @group Math
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathCoverageTest extends MediaWikiTestCase {
|
||||
protected static $hasTexvc;
|
||||
|
@ -3,8 +3,12 @@
|
||||
/**
|
||||
* Test the database access and core functionality of MathRenderer.
|
||||
*
|
||||
* @covers MathRenderer
|
||||
*
|
||||
* @group Math
|
||||
* @group Database //Used by needsDB
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathDatabaseTest extends MediaWikiTestCase {
|
||||
/**
|
||||
|
@ -1,13 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Test the results of MathFormatter
|
||||
*
|
||||
* @group Math
|
||||
*/
|
||||
|
||||
use DataValues\StringValue;
|
||||
use DataValues\NumberValue;
|
||||
|
||||
/**
|
||||
* Test the results of MathFormatter
|
||||
*
|
||||
* @covers MathFormatter
|
||||
*
|
||||
* @group Math
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathFormatterTest extends MediaWikiTestCase {
|
||||
|
||||
const SOME_TEX = 'a^2+b^2=c^2';
|
||||
|
@ -1,10 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Test Math utility functions.
|
||||
* @covers MathHooks
|
||||
*
|
||||
* @group Math
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathUtilsTest extends MediaWikiTestCase {
|
||||
class MathHooksTest extends MediaWikiTestCase {
|
||||
|
||||
public function testMathModeToString() {
|
||||
$default = 'png-testing'; // use a different string for testing only
|
@ -1,7 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Test the Id feature
|
||||
*
|
||||
* @covers MathRenderer
|
||||
*
|
||||
* @group Math
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathIdTest extends MediaWikiTestCase {
|
||||
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
/**
|
||||
* @group Math
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathInputCheckRestbaseTest extends MediaWikiTestCase {
|
||||
protected static $hasRestbase;
|
||||
|
@ -1,6 +1,11 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @covers MathInputCheck
|
||||
*
|
||||
* @group Math
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathInputCheckTest extends MediaWikiTestCase
|
||||
{
|
||||
|
@ -1,7 +1,11 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @covers MathInputCheckTexvc
|
||||
*
|
||||
* @group Math
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathInputCheckTexvcTest extends MediaWikiTestCase {
|
||||
|
||||
|
@ -1,10 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Test the database access and core functionality of MathRenderer.
|
||||
*
|
||||
* @group Math
|
||||
* @group Database (Used by needsDB)
|
||||
*/
|
||||
* @covers MathLaTeXML
|
||||
*
|
||||
* @group Math
|
||||
* @group Database (Used by needsDB)
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathLaTeXMLDatabaseTest extends MediaWikiTestCase {
|
||||
public $renderer;
|
||||
const SOME_TEX = "a+b";
|
||||
|
@ -1,9 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Test the LaTeXML output format.
|
||||
*
|
||||
* @group Math
|
||||
*/
|
||||
* Test the LaTeXML output format.
|
||||
*
|
||||
* @covers MathLaTeXML
|
||||
*
|
||||
* @group Math
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathLaTeXMLTest extends MediaWikiTestCase {
|
||||
|
||||
/**
|
||||
|
@ -1,8 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Test the MathML output format.
|
||||
*
|
||||
* @covers MathMathML
|
||||
*
|
||||
* @group Math
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathMathMLTest extends MediaWikiTestCase {
|
||||
|
||||
|
@ -1,8 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Test the database access and core functionality of MathRenderer.
|
||||
*
|
||||
* @covers MathRenderer
|
||||
*
|
||||
* @group Math
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathRendererTest extends MediaWikiTestCase {
|
||||
const SOME_TEX = "a+b";
|
||||
|
@ -5,7 +5,11 @@
|
||||
* /media/math/check/{type}
|
||||
* /media/math/render/{format}/{hash}
|
||||
*
|
||||
* @covers MathRestbaseInterface
|
||||
*
|
||||
* @group Math
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathRestbaseInterfaceTest extends MediaWikiTestCase {
|
||||
protected static $hasRestbase;
|
||||
|
@ -1,7 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Test the TeX source output format.
|
||||
*
|
||||
* @covers MathRenderer
|
||||
*
|
||||
* @group Math
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathSourceTest extends MediaWikiTestCase {
|
||||
|
||||
|
@ -1,13 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PHPUnit tests for MathTexvc.
|
||||
*
|
||||
* @covers MathTexvc
|
||||
*
|
||||
* @group Extensions
|
||||
* @group Math
|
||||
*/
|
||||
|
||||
/**
|
||||
* @covers MathTexvc
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathTexvcTest extends MediaWikiTestCase {
|
||||
|
||||
|
@ -1,13 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* Test the results of MathFormatter
|
||||
*
|
||||
* @group Math
|
||||
*/
|
||||
|
||||
use DataValues\StringValue;
|
||||
use DataValues\NumberValue;
|
||||
|
||||
/**
|
||||
* @covers MathValidator
|
||||
*
|
||||
* @group Math
|
||||
*
|
||||
* @licence GNU GPL v2+
|
||||
*/
|
||||
class MathValidatorTest extends MediaWikiTestCase {
|
||||
const VADLID_TEX = "a^2+b^2=c^2";
|
||||
const INVADLID_TEX = "\\notExists";
|
||||
|
Loading…
Reference in New Issue
Block a user