MediaWiki  REL1_24
TestRecorder Class Reference
Inheritance diagram for TestRecorder:
Collaboration diagram for TestRecorder:

List of all members.

Public Member Functions

 __construct ($parent)
 end ()
 Called at the end of the parser test run.
 record ($test, $result)
 Called after each test.
 report ()
 Called before finishing the test run.
 reportPercentage ($success, $total)
 start ()
 Called at beginning of the parser test run.

Public Attributes

 $parent
 $term

Detailed Description

Definition at line 63 of file testHelpers.inc.


Constructor & Destructor Documentation

Reimplemented in DbTestPreviewer.

Definition at line 67 of file testHelpers.inc.

References $parent, and term().


Member Function Documentation

Called at the end of the parser test run.

Implements ITestRecorder.

Reimplemented in DbTestPreviewer.

Definition at line 82 of file testHelpers.inc.

TestRecorder::record ( test,
result 
)

Called after each test.

Parameters:
string$test
bool$result

Implements ITestRecorder.

Reimplemented in DbTestRecorder, and DbTestPreviewer.

Definition at line 77 of file testHelpers.inc.

References $result.

Called before finishing the test run.

Implements ITestRecorder.

Reimplemented in DbTestPreviewer.

Definition at line 86 of file testHelpers.inc.

References reportPercentage().

TestRecorder::reportPercentage ( success,
total 
)

Definition at line 94 of file testHelpers.inc.

References $failed, $success, $total, print, term(), and wfPercent().

Referenced by report().

Called at beginning of the parser test run.

Implements ITestRecorder.

Reimplemented in DbTestRecorder, and DbTestPreviewer.

Definition at line 72 of file testHelpers.inc.


Member Data Documentation

TestRecorder::$parent

Definition at line 64 of file testHelpers.inc.

Referenced by __construct(), and DbTestPreviewer\__construct().

TestRecorder::$term

Definition at line 65 of file testHelpers.inc.


The documentation for this class was generated from the following file: