Thiemo Mättig (WMDE) has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/270317

Change subject: Add more complete PHPDoc tags to all tests
......................................................................

Add more complete PHPDoc tags to all tests

... and remove some actual copy-paste mistakes.

Change-Id: Id2fd83edff774a7f07b0f5436cefe2bf5c0a63f0
---
M tests/MathCoverageTest.php
M tests/MathDatabaseTest.php
M tests/MathFormatterTest.php
R tests/MathHooksTest.php
M tests/MathIdTest.php
M tests/MathInputCheckRestbaseTest.php
M tests/MathInputCheckTest.php
M tests/MathInputCheckTexvcTest.php
M tests/MathLaTeXMLDatabaseTest.php
M tests/MathLaTeXMLTest.php
M tests/MathMathMLTest.php
M tests/MathRendererTest.php
M tests/MathRestBaseInterfaceTest.php
M tests/MathSourceTest.php
M tests/MathTexvcTest.php
M tests/MathValidatorTest.php
16 files changed, 89 insertions(+), 25 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math 
refs/changes/17/270317/1

diff --git a/tests/MathCoverageTest.php b/tests/MathCoverageTest.php
index 23409d5..43c8693 100644
--- a/tests/MathCoverageTest.php
+++ b/tests/MathCoverageTest.php
@@ -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;
diff --git a/tests/MathDatabaseTest.php b/tests/MathDatabaseTest.php
index 3348a55..1c19925 100644
--- a/tests/MathDatabaseTest.php
+++ b/tests/MathDatabaseTest.php
@@ -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 {
        /**
diff --git a/tests/MathFormatterTest.php b/tests/MathFormatterTest.php
index 6e19c3b..51e4a07 100644
--- a/tests/MathFormatterTest.php
+++ b/tests/MathFormatterTest.php
@@ -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';
diff --git a/tests/MathUtilsTest.php b/tests/MathHooksTest.php
similarity index 96%
rename from tests/MathUtilsTest.php
rename to tests/MathHooksTest.php
index 05e7243..7ad5267 100644
--- a/tests/MathUtilsTest.php
+++ b/tests/MathHooksTest.php
@@ -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
diff --git a/tests/MathIdTest.php b/tests/MathIdTest.php
index 4365c4a..a3eb4ea 100644
--- a/tests/MathIdTest.php
+++ b/tests/MathIdTest.php
@@ -1,7 +1,13 @@
 <?php
+
 /**
  * Test the Id feature
+ *
+ * @covers MathRenderer
+ *
  * @group Math
+ *
+ * @licence GNU GPL v2+
  */
 class MathIdTest extends MediaWikiTestCase {
 
diff --git a/tests/MathInputCheckRestbaseTest.php 
b/tests/MathInputCheckRestbaseTest.php
index 359dbeb..49983cc 100644
--- a/tests/MathInputCheckRestbaseTest.php
+++ b/tests/MathInputCheckRestbaseTest.php
@@ -2,6 +2,8 @@
 
 /**
  * @group Math
+ *
+ * @licence GNU GPL v2+
  */
 class MathInputCheckRestbaseTest extends MediaWikiTestCase {
        protected static $hasRestbase;
diff --git a/tests/MathInputCheckTest.php b/tests/MathInputCheckTest.php
index 265bc1e..25ec434 100644
--- a/tests/MathInputCheckTest.php
+++ b/tests/MathInputCheckTest.php
@@ -1,6 +1,11 @@
 <?php
+
 /**
+ * @covers MathInputCheck
+ *
  * @group Math
+ *
+ * @licence GNU GPL v2+
  */
 class MathInputCheckTest extends MediaWikiTestCase
 {
diff --git a/tests/MathInputCheckTexvcTest.php 
b/tests/MathInputCheckTexvcTest.php
index 459a4be..e965445 100644
--- a/tests/MathInputCheckTexvcTest.php
+++ b/tests/MathInputCheckTexvcTest.php
@@ -1,7 +1,11 @@
 <?php
 
 /**
+ * @covers MathInputCheckTexvc
+ *
  * @group Math
+ *
+ * @licence GNU GPL v2+
  */
 class MathInputCheckTexvcTest extends MediaWikiTestCase {
 
diff --git a/tests/MathLaTeXMLDatabaseTest.php 
b/tests/MathLaTeXMLDatabaseTest.php
index c28f79e..7018eab 100644
--- a/tests/MathLaTeXMLDatabaseTest.php
+++ b/tests/MathLaTeXMLDatabaseTest.php
@@ -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";
diff --git a/tests/MathLaTeXMLTest.php b/tests/MathLaTeXMLTest.php
index ad8b633..0dfe311 100644
--- a/tests/MathLaTeXMLTest.php
+++ b/tests/MathLaTeXMLTest.php
@@ -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 {
 
        /**
diff --git a/tests/MathMathMLTest.php b/tests/MathMathMLTest.php
index 6f2a5ff..ba730b8 100644
--- a/tests/MathMathMLTest.php
+++ b/tests/MathMathMLTest.php
@@ -1,8 +1,13 @@
 <?php
+
 /**
  * Test the MathML output format.
  *
+ * @covers MathMathML
+ *
  * @group Math
+ *
+ * @licence GNU GPL v2+
  */
 class MathMathMLTest extends MediaWikiTestCase {
 
diff --git a/tests/MathRendererTest.php b/tests/MathRendererTest.php
index 68f4b5d..b5e40f7 100644
--- a/tests/MathRendererTest.php
+++ b/tests/MathRendererTest.php
@@ -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";
diff --git a/tests/MathRestBaseInterfaceTest.php 
b/tests/MathRestBaseInterfaceTest.php
index e78e6e3..5bb9d0f 100644
--- a/tests/MathRestBaseInterfaceTest.php
+++ b/tests/MathRestBaseInterfaceTest.php
@@ -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;
diff --git a/tests/MathSourceTest.php b/tests/MathSourceTest.php
index 7656330..97084d7 100644
--- a/tests/MathSourceTest.php
+++ b/tests/MathSourceTest.php
@@ -1,7 +1,13 @@
 <?php
+
 /**
  * Test the TeX source output format.
+ *
+ * @covers MathRenderer
+ *
  * @group Math
+ *
+ * @licence GNU GPL v2+
  */
 class MathSourceTest extends MediaWikiTestCase {
 
diff --git a/tests/MathTexvcTest.php b/tests/MathTexvcTest.php
index 816df45..1db4095 100644
--- a/tests/MathTexvcTest.php
+++ b/tests/MathTexvcTest.php
@@ -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 {
 
diff --git a/tests/MathValidatorTest.php b/tests/MathValidatorTest.php
index 8d40ef7..f5b6b90 100644
--- a/tests/MathValidatorTest.php
+++ b/tests/MathValidatorTest.php
@@ -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";

-- 
To view, visit https://gerrit.wikimedia.org/r/270317
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id2fd83edff774a7f07b0f5436cefe2bf5c0a63f0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: Thiemo Mättig (WMDE) <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to