MediaWiki  1.30.0
MultiTestRecorder Class Reference

This is a TestRecorder representing a collection of other TestRecorders. More...

Inheritance diagram for MultiTestRecorder:
Collaboration diagram for MultiTestRecorder:

Public Member Functions

 addRecorder (TestRecorder $recorder)
 
 end ()
 Called at the end of the parser test run. More...
 
 endSuite ( $path)
 Called after ending an input file. More...
 
 record ( $test, ParserTestResult $result)
 Called after each test. More...
 
 report ()
 Called before finishing the test run. More...
 
 skipped ( $test, $subtest)
 Mark a test skipped. More...
 
 start ()
 Called at beginning of the parser test run. More...
 
 startSuite ( $path)
 Called before starting an input file. More...
 
 startTest ( $test)
 Called before starting a test. More...
 
 warning ( $message)
 Show a warning to the user. More...
 

Private Member Functions

 proxy ( $funcName, $args)
 

Private Attributes

 $recorders = []
 

Detailed Description

This is a TestRecorder representing a collection of other TestRecorders.

It proxies calls to all constituent objects.

Definition at line 7 of file MultiTestRecorder.php.

Member Function Documentation

◆ addRecorder()

MultiTestRecorder::addRecorder ( TestRecorder  $recorder)

Definition at line 10 of file MultiTestRecorder.php.

Referenced by ParserTestsMaintenance\execute().

◆ end()

MultiTestRecorder::end ( )

Called at the end of the parser test run.

Reimplemented from TestRecorder.

Definition at line 52 of file MultiTestRecorder.php.

References proxy().

◆ endSuite()

MultiTestRecorder::endSuite (   $path)

Called after ending an input file.

Reimplemented from TestRecorder.

Definition at line 32 of file MultiTestRecorder.php.

References proxy().

◆ proxy()

MultiTestRecorder::proxy (   $funcName,
  $args 
)
private

Definition at line 14 of file MultiTestRecorder.php.

References $args, and as.

Referenced by end(), endSuite(), record(), report(), skipped(), start(), startSuite(), startTest(), and warning().

◆ record()

MultiTestRecorder::record (   $test,
ParserTestResult  $result 
)

Called after each test.

Parameters
array$test
ParserTestResult$result

Reimplemented from TestRecorder.

Definition at line 36 of file MultiTestRecorder.php.

References proxy().

◆ report()

MultiTestRecorder::report ( )

Called before finishing the test run.

Reimplemented from TestRecorder.

Definition at line 48 of file MultiTestRecorder.php.

References proxy().

◆ skipped()

MultiTestRecorder::skipped (   $test,
  $subtest 
)

Mark a test skipped.

Reimplemented from TestRecorder.

Definition at line 44 of file MultiTestRecorder.php.

References proxy().

◆ start()

MultiTestRecorder::start ( )

Called at beginning of the parser test run.

Reimplemented from TestRecorder.

Definition at line 20 of file MultiTestRecorder.php.

References proxy().

◆ startSuite()

MultiTestRecorder::startSuite (   $path)

Called before starting an input file.

Reimplemented from TestRecorder.

Definition at line 28 of file MultiTestRecorder.php.

References proxy().

◆ startTest()

MultiTestRecorder::startTest (   $test)

Called before starting a test.

Reimplemented from TestRecorder.

Definition at line 24 of file MultiTestRecorder.php.

References proxy().

◆ warning()

MultiTestRecorder::warning (   $message)

Show a warning to the user.

Reimplemented from TestRecorder.

Definition at line 40 of file MultiTestRecorder.php.

References proxy().

Member Data Documentation

◆ $recorders

MultiTestRecorder::$recorders = []
private

Definition at line 8 of file MultiTestRecorder.php.


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