* Unescape two entities when transforming. Motivation is to allow to use "Foo&nbsp...
[lhc/web/wiklou.git] / t / inc / Parser.t
1 #!/usr/bin/env php
2 <?php
3
4 require 't/Test.php';
5 require 'maintenance/parserTests.inc';
6
7 error_reporting( E_ALL ^ E_NOTICE );
8
9 class ProveTestRecorder extends TestRecorder {
10
11 function record( $name, $res ){}
12 function report(){}
13 function reportPercentage( $success, $total ){}
14 }
15
16 class ProveParserTest extends ParserTest {
17
18 function showSuccess( $desc ){
19 pass( $desc );
20 }
21
22 function showFailure( $desc, $exp, $got ){
23 _proclaim( false, $desc, false, $got, $exp );
24 }
25
26 function showRunFile( $path ){}
27 }
28
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 );
34
35 // Do not output the number of tests, if will be done automatically at the end
36
37 $tester->runTestsFromFiles( $wgParserTestFiles );
38
39 /* vim: set filetype=php: */