X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FGlobalFunctions%2FwfBaseNameTest.php;h=78e09e60baebd00cc37055bd9c836caa4120f7af;hb=03cd9495a4dac1c1cda738d52e74b553b977beb8;hp=705730a784240169d9d8a7442625175ba7179fc3;hpb=66d3eb56afc737e4e5ee66f7cad1dc78d1aec6b0;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/GlobalFunctions/wfBaseNameTest.php b/tests/phpunit/includes/GlobalFunctions/wfBaseNameTest.php index 705730a784..78e09e60ba 100644 --- a/tests/phpunit/includes/GlobalFunctions/wfBaseNameTest.php +++ b/tests/phpunit/includes/GlobalFunctions/wfBaseNameTest.php @@ -13,28 +13,28 @@ class WfBaseNameTest extends MediaWikiTestCase { } public static function providePaths() { - return array( - array( '', '' ), - array( '/', '' ), - array( '\\', '' ), - array( '//', '' ), - array( '\\\\', '' ), - array( 'a', 'a' ), - array( 'aaaa', 'aaaa' ), - array( '/a', 'a' ), - array( '\\a', 'a' ), - array( '/aaaa', 'aaaa' ), - array( '\\aaaa', 'aaaa' ), - array( '/aaaa/', 'aaaa' ), - array( '\\aaaa\\', 'aaaa' ), - array( '\\aaaa\\', 'aaaa' ), - array( + return [ + [ '', '' ], + [ '/', '' ], + [ '\\', '' ], + [ '//', '' ], + [ '\\\\', '' ], + [ 'a', 'a' ], + [ 'aaaa', 'aaaa' ], + [ '/a', 'a' ], + [ '\\a', 'a' ], + [ '/aaaa', 'aaaa' ], + [ '\\aaaa', 'aaaa' ], + [ '/aaaa/', 'aaaa' ], + [ '\\aaaa\\', 'aaaa' ], + [ '\\aaaa\\', 'aaaa' ], + [ '/mnt/upload3/wikipedia/en/thumb/8/8b/' . 'Zork_Grand_Inquisitor_box_cover.jpg/93px-Zork_Grand_Inquisitor_box_cover.jpg', '93px-Zork_Grand_Inquisitor_box_cover.jpg' - ), - array( 'C:\\Progra~1\\Wikime~1\\Wikipe~1\\VIEWER.EXE', 'VIEWER.EXE' ), - array( 'Östergötland_coat_of_arms.png', 'Östergötland_coat_of_arms.png' ), - ); + ], + [ 'C:\\Progra~1\\Wikime~1\\Wikipe~1\\VIEWER.EXE', 'VIEWER.EXE' ], + [ 'Östergötland_coat_of_arms.png', 'Östergötland_coat_of_arms.png' ], + ]; } }