Merge "Add used messages to LogFormatter::getMessageKey overrides"
[lhc/web/wiklou.git] / tests / parserTests.php
index 4d84025..7e6f68c 100644 (file)
@@ -24,9 +24,9 @@
  * @ingroup Testing
  */
 
-$otions = array( 'quick', 'color', 'quiet', 'help', 'show-output',
-       'record', 'run-disabled', 'run-parsoid' );
-$optionsWithArgs = array( 'regex', 'filter', 'seed', 'setversion' );
+$options = [ 'quick', 'color', 'quiet', 'help', 'show-output',
+       'record', 'run-disabled', 'run-parsoid' ];
+$optionsWithArgs = [ 'regex', 'filter', 'seed', 'setversion', 'file' ];
 
 require_once __DIR__ . '/../maintenance/commandLine.inc';
 require_once __DIR__ . '/TestsAutoLoader.php';
@@ -73,7 +73,7 @@ if ( $wgDBtype == 'sqlite' ) {
 $tester = new ParserTest( $options );
 
 if ( isset( $options['file'] ) ) {
-       $files = array( $options['file'] );
+       $files = [ $options['file'] ];
 } else {
        // Default parser tests and any set from extensions or local config
        $files = $wgParserTestFiles;