diff options
Diffstat (limited to 'www/wiki/extensions/Translate/tests/phpunit/ffs/IniFFSTest.php')
-rw-r--r-- | www/wiki/extensions/Translate/tests/phpunit/ffs/IniFFSTest.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/www/wiki/extensions/Translate/tests/phpunit/ffs/IniFFSTest.php b/www/wiki/extensions/Translate/tests/phpunit/ffs/IniFFSTest.php index 05250b20..ac9cd96b 100644 --- a/www/wiki/extensions/Translate/tests/phpunit/ffs/IniFFSTest.php +++ b/www/wiki/extensions/Translate/tests/phpunit/ffs/IniFFSTest.php @@ -4,25 +4,25 @@ * files, which are sometimes used for translations. * @author Niklas Laxström * @copyright Copyright © 2012-2013, Niklas Laxström - * @license GPL-2.0+ + * @license GPL-2.0-or-later * @file */ class IniFFSTest 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' => 'IniFFS', 'sourcePattern' => 'ignored', - ), - ); + ], + ]; public function testParsing() { $file = file_get_contents( __DIR__ . '/../data/IniFFSTest1.ini' ); @@ -36,17 +36,17 @@ class IniFFSTest extends MediaWikiTestCase { $this->assertTrue( IniFFS::isValid( $file ) ); $parsed = $ffs->readFromVariable( $file ); - $expected = array( + $expected = [ 'hello' => 'Hello', 'world' => 'World!', 'all' => 'all = all', 'foo.bar' => 'bar', 'quote' => "We're having fun?", - ); - $expected = array( + ]; + $expected = [ 'MESSAGES' => $expected, - 'AUTHORS' => array( 'The king of very small kingdom' ) - ); + 'AUTHORS' => [ 'The king of very small kingdom' ] + ]; $this->assertEquals( $expected, $parsed ); } |