MigrateActors: Don't delete log_search rows when migrating
[lhc/web/wiklou.git] / tests / phpunit / maintenance / fetchTextTest.php
index 5a28bfb..7cbda3c 100644 (file)
@@ -1,6 +1,14 @@
 <?php
 
-require_once __DIR__ . "/../../../maintenance/fetchText.php";
+namespace MediaWiki\Tests\Maintenance;
+
+use ContentHandler;
+use FetchText;
+use MediaWikiTestCase;
+use MWException;
+use Title;
+use PHPUnit_Framework_ExpectationFailedException;
+use WikiPage;
 
 /**
  * Mock for the input/output of FetchText
@@ -205,7 +213,7 @@ class FetchTextTest extends MediaWikiTestCase {
 
        function testExistingSeveral() {
                $this->assertFilter(
-                       join( "\n", [
+                       implode( "\n", [
                                self::$textId1,
                                self::$textId5,
                                self::$textId3,