X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2FparserTests.php;h=580f6fbb5c34eccca73f7f9be09ceb54f36c90ea;hb=d04d9047435149e9b8d525a1a38b76e5366eac84;hp=bc3281624ea71f87c7813abc5d3e87ae58787463;hpb=957c9a76a2c37785acf71bca1a2b7a312cacded1;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parserTests.php b/tests/parserTests.php index bc3281624e..580f6fbb5c 100644 --- a/tests/parserTests.php +++ b/tests/parserTests.php @@ -21,13 +21,13 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @ingroup Maintenance + * @ingroup Testing */ $options = array( 'quick', 'color', 'quiet', 'help', 'show-output', 'record', 'run-disabled' ); $optionsWithArgs = array( 'regex', 'seed', 'setversion' ); -require_once( dirname( __FILE__ ) . '/../commandLine.inc' ); +require_once( dirname( __FILE__ ) . '/../maintenance/commandLine.inc' ); if ( isset( $options['help'] ) ) { echo <<getType() == 'sqlite' ) { - $version = wfGetDB( DB_MASTER )->getServerVersion(); +if ( $wgDBtype == 'sqlite' ) { + $db = wfGetDB( DB_MASTER ); + $version = $db->getServerVersion(); if ( version_compare( $version, '3.6' ) < 0 ) { die( "Parser tests require SQLite version 3.6 or later, you have $version\n" ); }