X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fobjectcache%2FMemcachedBagOStuffTest.php;h=7814b83051ef59f7878929e98f0576c238e0b17d;hb=47b93ded1388ce5712d0a816db4ddd3466609bcd;hp=904ddbbf184f05dc08f25a081bff3772adc84ef6;hpb=ea9fcc1e4d3b572199d82c426024e3e5efe23879;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php b/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php index 904ddbbf18..7814b83051 100644 --- a/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php +++ b/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php @@ -8,7 +8,7 @@ class MemcachedBagOStuffTest extends MediaWikiTestCase { protected function setUp() { parent::setUp(); - $this->cache = new MemcachedBagOStuff( array( 'keyspace' => 'test' ) ); + $this->cache = new MemcachedBagOStuff( [ 'keyspace' => 'test' ] ); } /** @@ -76,12 +76,12 @@ class MemcachedBagOStuffTest extends MediaWikiTestCase { } public function validKeyProvider() { - return array( - 'empty' => array( '' ), - 'digits' => array( '09' ), - 'letters' => array( 'AZaz' ), - 'ASCII special characters' => array( '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~' ), - ); + return [ + 'empty' => [ '' ], + 'digits' => [ '09' ], + 'letters' => [ 'AZaz' ], + 'ASCII special characters' => [ '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~' ], + ]; } /** @@ -93,13 +93,13 @@ class MemcachedBagOStuffTest extends MediaWikiTestCase { } public function invalidKeyProvider() { - return array( - array( "\x00" ), - array( ' ' ), - array( "\x1F" ), - array( "\x7F" ), - array( "\x80" ), - array( "\xFF" ), - ); + return [ + [ "\x00" ], + [ ' ' ], + [ "\x1F" ], + [ "\x7F" ], + [ "\x80" ], + [ "\xFF" ], + ]; } }