3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 * http://www.gnu.org/copyleft/gpl.html
23 * Interface to record parser test results.
25 * The TestRecorder is an class hierarchy to record the result of
26 * MediaWiki parser tests. One should call start() before running the
27 * full parser tests and end() once all the tests have been finished.
28 * After each test, you should use record() to keep track of your tests
29 * results. Finally, report() is used to generate a summary of your
30 * test run, one could dump it to the console for human consumption or
31 * register the result in a database for tracking purposes.
38 * Called at beginning of the parser test run
40 public function start() {
44 * Called before starting a test
46 public function startTest( $test ) {
50 * Called before starting an input file
52 public function startSuite( $path ) {
56 * Called after ending an input file
58 public function endSuite( $path ) {
62 * Called after each test
64 * @param ParserTestResult $result
66 public function record( $test, ParserTestResult
$result ) {
70 * Show a warning to the user
72 public function warning( $message ) {
78 public function skipped( $test, $subtest ) {
82 * Called before finishing the test run
84 public function report() {
88 * Called at the end of the parser test run
90 public function end() {