* (bug 13965) Hardcoded 51 limit on titles is too limiting
[mediawiki.git] / t / inc / Parser.t
blob9df21d9a5084c783d3db453ce706d1a93b4ca42e
1 #!/usr/bin/env php
2 <?php
4 require 't/Test.php';
5 require 'maintenance/parserTests.inc';
7 error_reporting( E_ALL ^ E_NOTICE );
9 class ProveTestRecorder extends TestRecorder {
11 function record( $name, $res ){}
12 function report(){}
13 function reportPercentage( $success, $total ){}
16 class ProveParserTest extends ParserTest {
18 function showSuccess( $desc ){
19 pass( $desc );
22 function showFailure( $desc, $exp, $got ){
23 _proclaim( false, $desc, false, $got, $exp );
26 function showRunFile( $path ){}
29 $options = array( 'quick', 'quiet', 'compare' );
30 $tester = new ProveParserTest();
31 $tester->showProgress = false;
32 $tester->showFailure = false;
33 $tester->recorder = new ProveTestRecorder( $tester->term );
35 // Do not output the number of tests, if will be done automatically at the end
37 $tester->runTestsFromFiles( $wgParserTestFiles );
39 /* vim: set filetype=php: */