X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fmaintenance%2FfetchTextTest.php;h=2e35ecaf15ee4ed334ae7c76ac58c0998e4de000;hb=81518f218a4610db96670e1bedff874c65dfec81;hp=4e38418a18428acbe64d5ffa2633c6c292078e82;hpb=2bd577d312ddfc1c97afd62794f240eb3129ebfb;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/maintenance/fetchTextTest.php b/tests/phpunit/maintenance/fetchTextTest.php index 4e38418a18..2e35ecaf15 100644 --- a/tests/phpunit/maintenance/fetchTextTest.php +++ b/tests/phpunit/maintenance/fetchTextTest.php @@ -23,7 +23,7 @@ class SemiMockedFetchText extends FetchText { /** * @var array Invocation counters for the mocked aspects */ - private $mockInvocations = array( 'getStdin' => 0 ); + private $mockInvocations = [ 'getStdin' => 0 ]; /** * Data for the fake stdin @@ -210,13 +210,13 @@ class FetchTextTest extends MediaWikiTestCase { function testExistingSeveral() { $this->assertFilter( "$this->textId1\n$this->textId5\n" . "$this->textId3\n$this->textId3", - implode( "", array( + implode( "", [ $this->textId1 . "\n23\nFetchTextTestPage1Text1", $this->textId5 . "\n44\nFetchTextTestPage2Text4 " . "some additional Text", $this->textId3 . "\n23\nFetchTextTestPage2Text2", $this->textId3 . "\n23\nFetchTextTestPage2Text2" - ) ) ); + ] ) ); } function testEmpty() { @@ -249,13 +249,13 @@ class FetchTextTest extends MediaWikiTestCase { function testMix() { $this->assertFilter( "ab\n" . $this->textId4 . ".5cd\n\nefg\n" . $this->textId2 . "\n" . $this->textId3, - implode( "", array( + implode( "", [ "0\n-1\n", $this->textId4 . "\n23\nFetchTextTestPage2Text3", "0\n-1\n", "0\n-1\n", $this->textId2 . "\n23\nFetchTextTestPage2Text1", $this->textId3 . "\n23\nFetchTextTestPage2Text2" - ) ) ); + ] ) ); } }