define( 'SELENIUMTEST', true );
-require_once( dirname( __FILE__ ) . '/../maintenance/commandLine.inc' );
+//require_once( dirname( __FILE__ ) . '/../maintenance/commandLine.inc' );
+require( dirname( __FILE__ ) . '/../maintenance/Maintenance.php' );
require_once( 'PHPUnit/Framework.php' );
require_once( 'PHPUnit/Extensions/SeleniumTestCase.php' );
include_once( 'PHPUnit/Util/Log/JUnit.php' );
// State for starting/stopping the Selenium server has nothing to do with the Selenium
// class. Keep this state local to SeleniumTester class. Using getOption() is clumsy, but
// the Maintenance class does not have a setOption()
- if ( isset( $seleniumSettings['startserver'] ) ) $this->getOption( 'startserver', true );
- if ( isset( $seleniumSettings['stopserver'] ) ) $this->getOption( 'stopserver', true );
+ if ( ! isset( $seleniumSettings['startserver'] ) ) $this->getOption( 'startserver', true );
+ if ( ! isset( $seleniumSettings['stopserver'] ) ) $this->getOption( 'stopserver', true );
if ( !isset( $seleniumSettings['seleniumserverexecpath'] ) ) $seleniumSettings['seleniumserverexecpath'] = '';
$this->seleniumServerExecPath = $seleniumSettings['seleniumserverexecpath'];
public static function getSettings(&$includeFiles, &$globalConfigs) {
$includes = array(
//files that needed to be included would go here
- 'tests/selenium/suites/MediaWikiCommonFunction.php'
+ //commenting out because this does not exist
+ //'tests/selenium/suites/MediaWikiCommonFunction.php'
);
$configs = array(
'wgPageLoadTime' => "600000"