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

Public Member Functions

 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 = 'PHPUnitCommand'
 

Detailed Description

Definition at line 3 of file MediaWikiPHPUnitTestListener.php.

Member Function Documentation

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

An error occurred.

Parameters
PHPUnit_Framework_Test$test
Exception$e
float$time

Definition at line 35 of file MediaWikiPHPUnitTestListener.php.

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

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 50 of file MediaWikiPHPUnitTestListener.php.

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

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

Incomplete test.

Parameters
PHPUnit_Framework_Test$test
Exception$e
float$time

Definition at line 67 of file MediaWikiPHPUnitTestListener.php.

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

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

Skipped test.

Parameters
PHPUnit_Framework_Test$test
Exception$e
float$time

Definition at line 82 of file MediaWikiPHPUnitTestListener.php.

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

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

A test ended.

Parameters
PHPUnit_Framework_Test$test
float$time

Definition at line 126 of file MediaWikiPHPUnitTestListener.php.

References $time, getTestName(), and wfDebugLog().

MediaWikiPHPUnitTestListener::endTestSuite ( PHPUnit_Framework_TestSuite  $suite)

A test suite ended.

Parameters
PHPUnit_Framework_TestSuite$suite

Definition at line 105 of file MediaWikiPHPUnitTestListener.php.

References wfDebugLog().

MediaWikiPHPUnitTestListener::getErrorName ( Exception  $exception)
protected

Definition at line 21 of file MediaWikiPHPUnitTestListener.php.

References $name.

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

MediaWikiPHPUnitTestListener::getTestName ( PHPUnit_Framework_Test  $test)
protected
MediaWikiPHPUnitTestListener::startTest ( PHPUnit_Framework_Test  $test)

A test started.

Parameters
PHPUnit_Framework_Test$test

Definition at line 115 of file MediaWikiPHPUnitTestListener.php.

References getTestName(), and wfDebugLog().

MediaWikiPHPUnitTestListener::startTestSuite ( PHPUnit_Framework_TestSuite  $suite)

A test suite started.

Parameters
PHPUnit_Framework_TestSuite$suite

Definition at line 95 of file MediaWikiPHPUnitTestListener.php.

References wfDebugLog().

Member Data Documentation

string MediaWikiPHPUnitTestListener::$logChannel = 'PHPUnitCommand'
protected

Definition at line 9 of file MediaWikiPHPUnitTestListener.php.


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