Adding support for a callback to jquery.byteLimit
[lhc/web/wiklou.git] / tests / RunSeleniumTests.php
index e9270a8..9cadd75 100644 (file)
@@ -153,9 +153,9 @@ class SeleniumTester extends Maintenance {
        public function execute() {
                global $wgServer, $wgScriptPath, $wgHooks;
 
-               $seleniumSettings;
-               $seleniumBrowsers;
-               $seleniumTestSuites;
+               $seleniumSettings = array();
+               $seleniumBrowsers = array();
+               $seleniumTestSuites = array();
 
                $configFile = $this->getOption( 'seleniumConfig', '' );
                if ( strlen( $configFile ) > 0 ) {
@@ -164,7 +164,7 @@ class SeleniumTester extends Maintenance {
                                $seleniumBrowsers,
                                $seleniumTestSuites,
                                $configFile );
-               } else if ( !isset( $wgHooks['SeleniumSettings'] ) ) {
+               } elseif ( !isset( $wgHooks['SeleniumSettings'] ) ) {
                        $this->output("No command line, configuration file or configuration hook found.\n");
                        SeleniumConfig::getSeleniumSettings( $seleniumSettings,
                                $seleniumBrowsers,