summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/Translate/tests/phpunit/ffs/DtdFFSTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/Translate/tests/phpunit/ffs/DtdFFSTest.php')
-rw-r--r--www/wiki/extensions/Translate/tests/phpunit/ffs/DtdFFSTest.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/www/wiki/extensions/Translate/tests/phpunit/ffs/DtdFFSTest.php b/www/wiki/extensions/Translate/tests/phpunit/ffs/DtdFFSTest.php
index bb44c21c..9e76454d 100644
--- a/www/wiki/extensions/Translate/tests/phpunit/ffs/DtdFFSTest.php
+++ b/www/wiki/extensions/Translate/tests/phpunit/ffs/DtdFFSTest.php
@@ -6,23 +6,23 @@
* @author Niklas Laxström
* @author Amir E. Aharoni
* @file
- * @license GPL-2.0+
+ * @license GPL-2.0-or-later
*/
class DtdFFSTest extends MediaWikiTestCase {
- protected $groupConfiguration = array(
- 'BASIC' => array(
+ protected $groupConfiguration = [
+ 'BASIC' => [
'class' => 'FileBasedMessageGroup',
'id' => 'test-id',
'label' => 'Test Label',
'namespace' => 'NS_MEDIAWIKI',
'description' => 'Test description',
- ),
- 'FILES' => array(
+ ],
+ 'FILES' => [
'class' => 'DtdFFS',
- ),
- );
+ ],
+ ];
public function testParsing() {
$file =
@@ -44,11 +44,11 @@ DTD;
$group = MessageGroupBase::factory( $this->groupConfiguration );
$ffs = new DtdFFS( $group );
$parsed = $ffs->readFromVariable( $file );
- $expected = array(
+ $expected = [
'okawix.title' => 'Okawix &okawix.vernum; - Navigator de Wikipedia',
'okawix.back' => 'Retro',
- );
- $expected = array( 'MESSAGES' => $expected, 'AUTHORS' => array( 'McDutchie' ) );
+ ];
+ $expected = [ 'MESSAGES' => $expected, 'AUTHORS' => [ 'McDutchie' ] ];
$this->assertEquals( $expected, $parsed );
}
}