From 26e9f00c2a9656d4c855e67c88cb7cf884cbcd7d Mon Sep 17 00:00:00 2001 From: "Moritz Schubotz (physikerwelt)" Date: Mon, 5 Feb 2018 16:24:14 +0100 Subject: [PATCH] Fix broken links in phpunit covers annotations Phpunit now checks if the coverage annotations are reasonable. This fix corrects unresolvable references in phpunit covers annotations. Change-Id: I7eba10bd7dc445b175df750465bb80bd5ef0f4c6 --- tests/MathDatabaseTest.php | 4 ++-- tests/MathInputCheckTexvcTest.php | 2 +- tests/MathLaTeXMLDatabaseTest.php | 4 ++-- tests/MathMathMLTest.php | 8 ++++---- tests/MathTexvcTest.php | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/MathDatabaseTest.php b/tests/MathDatabaseTest.php index 7e55f7c..2319cf6 100644 --- a/tests/MathDatabaseTest.php +++ b/tests/MathDatabaseTest.php @@ -61,8 +61,8 @@ class MathDatabaseTest extends MediaWikiTestCase { /** * Checks database access. Writes an entry and reads it back. - * @covers MathRenderer::writeDatabaseEntry() - * @covers MathRenderer::readDatabaseEntry() + * @covers MathRenderer::writeToDatabase + * @covers MathRenderer::readFromDatabase */ public function testDBBasics() { $this->setValues(); diff --git a/tests/MathInputCheckTexvcTest.php b/tests/MathInputCheckTexvcTest.php index 8c80586..e71e44e 100644 --- a/tests/MathInputCheckTexvcTest.php +++ b/tests/MathInputCheckTexvcTest.php @@ -87,7 +87,7 @@ class MathInputCheckTexvcTest extends MediaWikiTestCase { } /** - * @covers MathInputCheckTexvc::testGetError + * @covers MathInputCheckTexvc::getError */ public function testGetError() { $this->assertNull( $this->GoodObject->getError() ); diff --git a/tests/MathLaTeXMLDatabaseTest.php b/tests/MathLaTeXMLDatabaseTest.php index 399966d..7c179f5 100644 --- a/tests/MathLaTeXMLDatabaseTest.php +++ b/tests/MathLaTeXMLDatabaseTest.php @@ -95,8 +95,8 @@ class MathLaTeXMLDatabaseTest extends MediaWikiTestCase { /** * Checks database access. Writes an entry and reads it back. * @depends testCreateTable - * @covers MathRenderer::writeDatabaseEntry() - * @covers MathRenderer::readDatabaseEntry() + * @covers MathRenderer::writeToDatabase + * @covers MathRenderer::readFromDatabase */ public function testDBBasics() { $this->setValues(); diff --git a/tests/MathMathMLTest.php b/tests/MathMathMLTest.php index 60d2cea..470d413 100644 --- a/tests/MathMathMLTest.php +++ b/tests/MathMathMLTest.php @@ -33,7 +33,7 @@ class MathMathMLTest extends MediaWikiTestCase { /** * Tests behavior of makeRequest() that communicates with the host. * Testcase: Invalid request. - * @covers MathTexvc::makeRequest + * @covers MathMathML::makeRequest */ public function testMakeRequestInvalid() { self::setMockValues( false, false, false ); @@ -57,7 +57,7 @@ class MathMathMLTest extends MediaWikiTestCase { /** * Tests behavior of makeRequest() that communicates with the host. * Testcase: Valid request. - * @covers MathTexvc::makeRequest + * @covers MathMathML::makeRequest */ public function testMakeRequestSuccess() { self::setMockValues( true, true, false ); @@ -96,9 +96,9 @@ class MathMathMLTest extends MediaWikiTestCase { /** * Checks if a String is a valid MathML element - * @covers MathMathML::isValidXML + * @covers MathMathML::isValidMathML */ - public function testisValidXML() { + public function testisValidMathML() { $renderer = $this->getMockBuilder( 'MathMathML' ) ->setMethods( null ) ->disableOriginalConstructor() diff --git a/tests/MathTexvcTest.php b/tests/MathTexvcTest.php index d407a8d..64c1fe8 100644 --- a/tests/MathTexvcTest.php +++ b/tests/MathTexvcTest.php @@ -171,7 +171,7 @@ class MathTexvcTest extends MediaWikiTestCase { /** * Test behavior $change when the rendered hash was changed - * @covers MathRenderer::setHash() + * @covers MathTexvc::setHash */ public function testChangeHash() { $renderer = $this->getMockBuilder( 'MathTexvc' )