MediaWiki REL1_28
DbTestRecorder Class Reference
Inheritance diagram for DbTestRecorder:
Collaboration diagram for DbTestRecorder:

Public Member Functions

 __construct (IDatabase $db)
 
 end ()
 Commit transaction and clean up for result recording.
 
 record ( $test, ParserTestResult $result)
 Record an individual test item's success or failure to the db.
 
 start ()
 Set up result recording; insert a record for the run with the date and all that fun stuff.
 
- Public Member Functions inherited from TestRecorder
 endSuite ( $path)
 Called after ending an input file.
 
 report ()
 Called before finishing the test run.
 
 skipped ( $test, $subtest)
 Mark a test skipped.
 
 startSuite ( $path)
 Called before starting an input file.
 
 startTest ( $test)
 Called before starting a test.
 
 warning ( $message)
 Show a warning to the user.
 

Public Attributes

 $version
 

Private Attributes

 $db
 

Detailed Description

Definition at line 22 of file DbTestRecorder.php.

Constructor & Destructor Documentation

◆ __construct()

DbTestRecorder::__construct ( IDatabase  $db)

Definition at line 26 of file DbTestRecorder.php.

References $db.

Member Function Documentation

◆ end()

DbTestRecorder::end ( )

Commit transaction and clean up for result recording.

Reimplemented from TestRecorder.

Definition at line 80 of file DbTestRecorder.php.

◆ record()

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

Record an individual test item's success or failure to the db.

Parameters
array$test
ParserTestResult$result

Reimplemented from TestRecorder.

Definition at line 67 of file DbTestRecorder.php.

◆ start()

DbTestRecorder::start ( )

Set up result recording; insert a record for the run with the date and all that fun stuff.

Reimplemented from TestRecorder.

Definition at line 34 of file DbTestRecorder.php.

References print.

Member Data Documentation

◆ $db

DbTestRecorder::$db
private

Definition at line 24 of file DbTestRecorder.php.

Referenced by __construct().

◆ $version

DbTestRecorder::$version

Definition at line 23 of file DbTestRecorder.php.


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