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

Public Member Functions

 __construct ( $parent)
 
 end ()
 Called at the end of the parser test run.
 
 record ( $test, $subtest, $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 64 of file testHelpers.inc.

Constructor & Destructor Documentation

◆ __construct()

TestRecorder::__construct (   $parent)

Reimplemented in DbTestPreviewer.

Definition at line 68 of file testHelpers.inc.

References $parent, and term().

Member Function Documentation

◆ end()

TestRecorder::end ( )

Called at the end of the parser test run.

Implements ITestRecorder.

Reimplemented in DbTestPreviewer, and DbTestRecorder.

Definition at line 83 of file testHelpers.inc.

◆ record()

TestRecorder::record (   $test,
  $subtest,
  $result 
)

Called after each test.

Parameters
string$test
integer$subtest
bool$result

Implements ITestRecorder.

Reimplemented in DbTestPreviewer, and DbTestRecorder.

Definition at line 78 of file testHelpers.inc.

◆ report()

TestRecorder::report ( )

Called before finishing the test run.

Implements ITestRecorder.

Reimplemented in DbTestPreviewer.

Definition at line 87 of file testHelpers.inc.

References reportPercentage().

◆ reportPercentage()

TestRecorder::reportPercentage (   $success,
  $total 
)

Definition at line 95 of file testHelpers.inc.

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

Referenced by report().

◆ start()

TestRecorder::start ( )

Called at beginning of the parser test run.

Implements ITestRecorder.

Reimplemented in DbTestPreviewer, and DbTestRecorder.

Definition at line 73 of file testHelpers.inc.

Member Data Documentation

◆ $parent

TestRecorder::$parent

Definition at line 65 of file testHelpers.inc.

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

◆ $term

TestRecorder::$term

Definition at line 66 of file testHelpers.inc.


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