X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fdeferred%2FCdnCacheUpdateTest.php;h=f3c949d3d0156e6af970cc9977834e528d03d6a2;hb=3dc37c18c211c9a4fb9995913e35dc99e53281c1;hp=de77ad5071883bfa19a521a1c0fd93d14fbef715;hpb=6ecdc5cd27d53442dd379928fcd831a86eeb07f6;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/deferred/CdnCacheUpdateTest.php b/tests/phpunit/includes/deferred/CdnCacheUpdateTest.php index de77ad5071..f3c949d3d0 100644 --- a/tests/phpunit/includes/deferred/CdnCacheUpdateTest.php +++ b/tests/phpunit/includes/deferred/CdnCacheUpdateTest.php @@ -1,10 +1,16 @@ setMwGlobals( 'wgCommandLineMode', false ); - $urls1 = array(); + $urls1 = []; $title = Title::newMainPage(); $urls1[] = $title->getCanonicalURL( '?x=1' ); $urls1[] = $title->getCanonicalURL( '?x=2' ); @@ -12,7 +18,7 @@ class CdnCacheUpdateTest extends MediaWikiTestCase { $update1 = new CdnCacheUpdate( $urls1 ); DeferredUpdates::addUpdate( $update1 ); - $urls2 = array(); + $urls2 = []; $urls2[] = $title->getCanonicalURL( '?x=2' ); $urls2[] = $title->getCanonicalURL( '?x=3' ); $urls2[] = $title->getCanonicalURL( '?x=4' );