From: Kunal Mehta Date: Tue, 19 Dec 2017 06:01:02 +0000 (-0800) Subject: RevisionTest: Make @covers tags absolute (re-apply) X-Git-Tag: 1.31.0-rc.0~1132 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=ee3f8a60ef877efe86ef07e0f96060a0930532c6 RevisionTest: Make @covers tags absolute (re-apply) PHPUnit requires @covers tags to be absolute, they cannot depend upon `use ...` statements. Change-Id: I06efa94be3a814acbcb116162db162dcbf36432e --- diff --git a/tests/phpunit/includes/RevisionTest.php b/tests/phpunit/includes/RevisionTest.php index 01762b92ef..6286e70e47 100644 --- a/tests/phpunit/includes/RevisionTest.php +++ b/tests/phpunit/includes/RevisionTest.php @@ -166,7 +166,7 @@ class RevisionTest extends MediaWikiTestCase { /** * @dataProvider provideConstructFromArrayThrowsExceptions * @covers Revision::__construct - * @covers RevisionStore::newMutableRevisionFromArray + * @covers \MediaWiki\Storage\RevisionStore::newMutableRevisionFromArray */ public function testConstructFromArrayThrowsExceptions( $rowArray, Exception $expectedException ) { $this->setExpectedException( @@ -179,7 +179,7 @@ class RevisionTest extends MediaWikiTestCase { /** * @covers Revision::__construct - * @covers RevisionStore::newMutableRevisionFromArray + * @covers \MediaWiki\Storage\RevisionStore::newMutableRevisionFromArray */ public function testConstructFromNothing() { $this->setExpectedException( @@ -265,7 +265,7 @@ class RevisionTest extends MediaWikiTestCase { /** * @dataProvider provideConstructFromRow * @covers Revision::__construct - * @covers RevisionStore::newMutableRevisionFromArray + * @covers \MediaWiki\Storage\RevisionStore::newMutableRevisionFromArray */ public function testConstructFromRow( array $arrayData, $assertions ) { $data = 'Hello goat.'; // needs to match model and format