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
This commit is contained in:
Moritz Schubotz (physikerwelt) 2018-02-05 16:24:14 +01:00
parent 4831953040
commit 26e9f00c2a
No known key found for this signature in database
GPG Key ID: 73D26C61BAB32E94
5 changed files with 10 additions and 10 deletions

View File

@ -61,8 +61,8 @@ class MathDatabaseTest extends MediaWikiTestCase {
/** /**
* Checks database access. Writes an entry and reads it back. * Checks database access. Writes an entry and reads it back.
* @covers MathRenderer::writeDatabaseEntry() * @covers MathRenderer::writeToDatabase
* @covers MathRenderer::readDatabaseEntry() * @covers MathRenderer::readFromDatabase
*/ */
public function testDBBasics() { public function testDBBasics() {
$this->setValues(); $this->setValues();

View File

@ -87,7 +87,7 @@ class MathInputCheckTexvcTest extends MediaWikiTestCase {
} }
/** /**
* @covers MathInputCheckTexvc::testGetError * @covers MathInputCheckTexvc::getError
*/ */
public function testGetError() { public function testGetError() {
$this->assertNull( $this->GoodObject->getError() ); $this->assertNull( $this->GoodObject->getError() );

View File

@ -95,8 +95,8 @@ class MathLaTeXMLDatabaseTest extends MediaWikiTestCase {
/** /**
* Checks database access. Writes an entry and reads it back. * Checks database access. Writes an entry and reads it back.
* @depends testCreateTable * @depends testCreateTable
* @covers MathRenderer::writeDatabaseEntry() * @covers MathRenderer::writeToDatabase
* @covers MathRenderer::readDatabaseEntry() * @covers MathRenderer::readFromDatabase
*/ */
public function testDBBasics() { public function testDBBasics() {
$this->setValues(); $this->setValues();

View File

@ -33,7 +33,7 @@ class MathMathMLTest extends MediaWikiTestCase {
/** /**
* Tests behavior of makeRequest() that communicates with the host. * Tests behavior of makeRequest() that communicates with the host.
* Testcase: Invalid request. * Testcase: Invalid request.
* @covers MathTexvc::makeRequest * @covers MathMathML::makeRequest
*/ */
public function testMakeRequestInvalid() { public function testMakeRequestInvalid() {
self::setMockValues( false, false, false ); self::setMockValues( false, false, false );
@ -57,7 +57,7 @@ class MathMathMLTest extends MediaWikiTestCase {
/** /**
* Tests behavior of makeRequest() that communicates with the host. * Tests behavior of makeRequest() that communicates with the host.
* Testcase: Valid request. * Testcase: Valid request.
* @covers MathTexvc::makeRequest * @covers MathMathML::makeRequest
*/ */
public function testMakeRequestSuccess() { public function testMakeRequestSuccess() {
self::setMockValues( true, true, false ); self::setMockValues( true, true, false );
@ -96,9 +96,9 @@ class MathMathMLTest extends MediaWikiTestCase {
/** /**
* Checks if a String is a valid MathML element * 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' ) $renderer = $this->getMockBuilder( 'MathMathML' )
->setMethods( null ) ->setMethods( null )
->disableOriginalConstructor() ->disableOriginalConstructor()

View File

@ -171,7 +171,7 @@ class MathTexvcTest extends MediaWikiTestCase {
/** /**
* Test behavior $change when the rendered hash was changed * Test behavior $change when the rendered hash was changed
* @covers MathRenderer::setHash() * @covers MathTexvc::setHash
*/ */
public function testChangeHash() { public function testChangeHash() {
$renderer = $this->getMockBuilder( 'MathTexvc' ) $renderer = $this->getMockBuilder( 'MathTexvc' )