X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fobjectcache%2FMemcachedBagOStuffTest.php;h=7814b83051ef59f7878929e98f0576c238e0b17d;hb=fc1ca75323b5f424a9f8d28d42d85a311ed2f721;hp=3e3bac37cbb0d99c04168da59fa72e1b8079b9f0;hpb=2c97164bf842465ca5fc310414f7c0bbc7c7993f;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php b/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php index 3e3bac37cb..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' ] ); } /** @@ -42,7 +42,7 @@ class MemcachedBagOStuffTest extends MediaWikiTestCase { ); $this->assertEquals( - 'test:##5820ad1d105aa4dc698585c39df73e19', + 'test:##dc89dcb43b28614da27660240af478b5', $this->cache->makeKey( '𝕖𝕧𝕖𝕟', '𝕚𝕗', '𝕨𝕖', '𝕄𝔻𝟝', '𝕖𝕒𝕔𝕙', '𝕒𝕣𝕘𝕦𝕞𝕖𝕟𝕥', '𝕥𝕙𝕚𝕤', '𝕜𝕖𝕪', '𝕨𝕠𝕦𝕝𝕕', '𝕤𝕥𝕚𝕝𝕝', '𝕓𝕖', '𝕥𝕠𝕠', '𝕝𝕠𝕟𝕘' ) ); @@ -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" ], + ]; } }