X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2FparserTests.php;h=debb35751b21759f4669f44653b0be5d911faf6d;hb=a36b3c44ed0a950efbd4e01557db6014701d71e6;hp=4d2c402deded4ac7a7d44ac69a7f2f014bded693;hpb=be6a0c59043e24a199662f8ca596842ab56b2e58;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parserTests.php b/tests/parserTests.php index 4d2c402ded..debb35751b 100644 --- a/tests/parserTests.php +++ b/tests/parserTests.php @@ -24,11 +24,11 @@ * @ingroup Testing */ -$otions = array( 'quick', 'color', 'quiet', 'help', 'show-output', 'record', 'run-disabled' ); +$otions = array( 'quick', 'color', 'quiet', 'help', 'show-output', 'record', 'run-disabled', 'run-parsoid' ); $optionsWithArgs = array( 'regex', 'filter', 'seed', 'setversion' ); -require_once( __DIR__ . '/../maintenance/commandLine.inc' ); -require_once( __DIR__ . '/TestsAutoLoader.php' ); +require_once __DIR__ . '/../maintenance/commandLine.inc'; +require_once __DIR__ . '/TestsAutoLoader.php'; if ( isset( $options['help'] ) ) { echo << Start the fuzz test from the specified seed --help Show this help message --run-disabled run disabled tests + --run-parsoid run parsoid tests (normally disabled) ENDS; exit( 0 ); @@ -83,11 +84,11 @@ if ( isset( $options['file'] ) ) { # Print out software version to assist with locating regressions $version = SpecialVersion::getVersion(); -echo( "This is MediaWiki version {$version}.\n\n" ); +echo "This is MediaWiki version {$version}.\n\n"; if ( isset( $options['fuzz'] ) ) { $tester->fuzzTest( $files ); } else { $ok = $tester->runTestsFromFiles( $files ); - exit ( $ok ? 0 : 1 ); + exit( $ok ? 0 : 1 ); }