diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2018-01-13 01:02:09 +0100 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2018-01-26 22:49:13 +0100 |
commit | 45da5815517c408bafed6b3744766860afdcd7b8 (patch) | |
tree | bbb923551aa254d65bde3fa240194a02c10557d4 /tests/phpunit/includes/content/WikitextContentHandlerTest.php | |
parent | 707c74227c02a4f3d6332d8439eb1788cb801790 (diff) | |
download | mediawikicore-45da5815517c408bafed6b3744766860afdcd7b8.tar.gz mediawikicore-45da5815517c408bafed6b3744766860afdcd7b8.zip |
Use ::class to resolve class names in tests
This helps to find renamed or misspelled classes earlier.
Phan will check the class names
Change-Id: Ie541a7baae10ab6f5c13f95ac2ff6598b8f8950c
Diffstat (limited to 'tests/phpunit/includes/content/WikitextContentHandlerTest.php')
-rw-r--r-- | tests/phpunit/includes/content/WikitextContentHandlerTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/content/WikitextContentHandlerTest.php b/tests/phpunit/includes/content/WikitextContentHandlerTest.php index dfc07c90f1a6..59984d85e992 100644 --- a/tests/phpunit/includes/content/WikitextContentHandlerTest.php +++ b/tests/phpunit/includes/content/WikitextContentHandlerTest.php @@ -339,7 +339,7 @@ class WikitextContentHandlerTest extends MediaWikiLangTestCase { * @covers WikitextContentHandler::getDataForSearchIndex */ public function testDataIndexFieldsFile() { - $mockEngine = $this->createMock( 'SearchEngine' ); + $mockEngine = $this->createMock( SearchEngine::class ); $title = Title::newFromText( 'Somefile.jpg', NS_FILE ); $page = new WikiPage( $title ); |