MediaWiki  1.23.8
MediaWikiPHPUnitTestListener Class Reference
Inheritance diagram for MediaWikiPHPUnitTestListener:
Collaboration diagram for MediaWikiPHPUnitTestListener:

Public Member Functions

 __construct ( $logChannel)
 
 addError (PHPUnit_Framework_Test $test, Exception $e, $time)
 An error occurred. More...
 
 addFailure (PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
 A failure occurred. More...
 
 addIncompleteTest (PHPUnit_Framework_Test $test, Exception $e, $time)
 Incomplete test. More...
 
 addSkippedTest (PHPUnit_Framework_Test $test, Exception $e, $time)
 Skipped test. More...
 
 endTest (PHPUnit_Framework_Test $test, $time)
 A test ended. More...
 
 endTestSuite (PHPUnit_Framework_TestSuite $suite)
 A test suite ended. More...
 
 startTest (PHPUnit_Framework_Test $test)
 A test started. More...
 
 startTestSuite (PHPUnit_Framework_TestSuite $suite)
 A test suite started. More...
 

Protected Member Functions

 getErrorName (Exception $exception)
 
 getTestName (PHPUnit_Framework_Test $test)
 

Protected Attributes

string $logChannel
 

Detailed Description

Definition at line 2 of file MediaWikiPHPUnitTestListener.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWikiPHPUnitTestListener::__construct (   $logChannel)

Definition at line 8 of file MediaWikiPHPUnitTestListener.php.

References $logChannel.

Member Function Documentation

◆ addError()

MediaWikiPHPUnitTestListener::addError ( PHPUnit_Framework_Test  $test,
Exception  $e,
  $time 
)

An error occurred.

Parameters
PHPUnit_Framework_Test$test
Exception$e
float$time

Definition at line 36 of file MediaWikiPHPUnitTestListener.php.

References getErrorName(), getTestName(), and wfDebugLog().

◆ addFailure()

MediaWikiPHPUnitTestListener::addFailure ( PHPUnit_Framework_Test  $test,
PHPUnit_Framework_AssertionFailedError  $e,
  $time 
)

A failure occurred.

Parameters
PHPUnit_Framework_Test$test
PHPUnit_Framework_AssertionFailedError$e
float$time

Definition at line 47 of file MediaWikiPHPUnitTestListener.php.

References getErrorName(), getTestName(), and wfDebugLog().

◆ addIncompleteTest()

MediaWikiPHPUnitTestListener::addIncompleteTest ( PHPUnit_Framework_Test  $test,
Exception  $e,
  $time 
)

Incomplete test.

Parameters
PHPUnit_Framework_Test$test
Exception$e
float$time

Definition at line 58 of file MediaWikiPHPUnitTestListener.php.

References getErrorName(), getTestName(), and wfDebugLog().

◆ addSkippedTest()

MediaWikiPHPUnitTestListener::addSkippedTest ( PHPUnit_Framework_Test  $test,
Exception  $e,
  $time 
)

Skipped test.

Parameters
PHPUnit_Framework_Test$test
Exception$e
float$time
Since
Method available since Release 3.0.0

Definition at line 71 of file MediaWikiPHPUnitTestListener.php.

References getErrorName(), getTestName(), and wfDebugLog().

◆ endTest()

MediaWikiPHPUnitTestListener::endTest ( PHPUnit_Framework_Test  $test,
  $time 
)

A test ended.

Parameters
PHPUnit_Framework_Test$test
float$time

Definition at line 110 of file MediaWikiPHPUnitTestListener.php.

References getTestName(), and wfDebugLog().

◆ endTestSuite()

MediaWikiPHPUnitTestListener::endTestSuite ( PHPUnit_Framework_TestSuite  $suite)

A test suite ended.

Parameters
PHPUnit_Framework_TestSuite$suite
Since
Method available since Release 2.2.0

Definition at line 91 of file MediaWikiPHPUnitTestListener.php.

References wfDebugLog().

◆ getErrorName()

MediaWikiPHPUnitTestListener::getErrorName ( Exception  $exception)
protected

Definition at line 22 of file MediaWikiPHPUnitTestListener.php.

References $name.

Referenced by addError(), addFailure(), addIncompleteTest(), and addSkippedTest().

◆ getTestName()

MediaWikiPHPUnitTestListener::getTestName ( PHPUnit_Framework_Test  $test)
protected

◆ startTest()

MediaWikiPHPUnitTestListener::startTest ( PHPUnit_Framework_Test  $test)

A test started.

Parameters
PHPUnit_Framework_Test$test

Definition at line 100 of file MediaWikiPHPUnitTestListener.php.

References getTestName(), and wfDebugLog().

◆ startTestSuite()

MediaWikiPHPUnitTestListener::startTestSuite ( PHPUnit_Framework_TestSuite  $suite)

A test suite started.

Parameters
PHPUnit_Framework_TestSuite$suite
Since
Method available since Release 2.2.0

Definition at line 81 of file MediaWikiPHPUnitTestListener.php.

References wfDebugLog().

Member Data Documentation

◆ $logChannel

string MediaWikiPHPUnitTestListener::$logChannel
protected

Definition at line 6 of file MediaWikiPHPUnitTestListener.php.

Referenced by __construct().


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