blob: 9df21d9a5084c783d3db453ce706d1a93b4ca42e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#!/usr/bin/env php
<?php
require 't/Test.php';
require 'maintenance/parserTests.inc';
error_reporting( E_ALL ^ E_NOTICE );
class ProveTestRecorder extends TestRecorder {
function record( $name, $res ){}
function report(){}
function reportPercentage( $success, $total ){}
}
class ProveParserTest extends ParserTest {
function showSuccess( $desc ){
pass( $desc );
}
function showFailure( $desc, $exp, $got ){
_proclaim( false, $desc, false, $got, $exp );
}
function showRunFile( $path ){}
}
$options = array( 'quick', 'quiet', 'compare' );
$tester = new ProveParserTest();
$tester->showProgress = false;
$tester->showFailure = false;
$tester->recorder = new ProveTestRecorder( $tester->term );
// Do not output the number of tests, if will be done automatically at the end
$tester->runTestsFromFiles( $wgParserTestFiles );
/* vim: set filetype=php: */
|