PHPUnit_Runner_BaseTestRunner
in package
Base class for all test runners.
Tags
Table of Contents
- STATUS_ERROR = 4
- STATUS_FAILURE = 3
- STATUS_INCOMPLETE = 2
- STATUS_PASSED = 0
- STATUS_RISKY = 5
- STATUS_SKIPPED = 1
- SUITE_METHODNAME = 'suite'
- getLoader() : PHPUnit_Runner_TestSuiteLoader
- Returns the loader to be used.
- getTest() : PHPUnit_Framework_Test
- Returns the Test corresponding to the given suite.
- clearStatus() : mixed
- Clears the status message.
- loadSuiteClass() : ReflectionClass
- Returns the loaded ReflectionClass for a suite name.
- runFailed() : mixed
- Override to define how to handle a failed loading of a test suite.
Constants
STATUS_ERROR
public
mixed
STATUS_ERROR
= 4
STATUS_FAILURE
public
mixed
STATUS_FAILURE
= 3
STATUS_INCOMPLETE
public
mixed
STATUS_INCOMPLETE
= 2
STATUS_PASSED
public
mixed
STATUS_PASSED
= ""
STATUS_RISKY
public
mixed
STATUS_RISKY
= 5
STATUS_SKIPPED
public
mixed
STATUS_SKIPPED
= 1
SUITE_METHODNAME
public
mixed
SUITE_METHODNAME
= 'suite'
Methods
getLoader()
Returns the loader to be used.
public
getLoader() : PHPUnit_Runner_TestSuiteLoader
Return values
PHPUnit_Runner_TestSuiteLoader —getTest()
Returns the Test corresponding to the given suite.
public
getTest(string $suiteClassName[, string $suiteClassFile = '' ][, mixed $suffixes = '' ]) : PHPUnit_Framework_Test
This is a template method, subclasses override the runFailed() and clearStatus() methods.
Parameters
- $suiteClassName : string
- $suiteClassFile : string = ''
- $suffixes : mixed = ''
Return values
PHPUnit_Framework_Test —clearStatus()
Clears the status message.
protected
clearStatus() : mixed
Return values
mixed —loadSuiteClass()
Returns the loaded ReflectionClass for a suite name.
protected
loadSuiteClass(string $suiteClassName[, string $suiteClassFile = '' ]) : ReflectionClass
Parameters
- $suiteClassName : string
- $suiteClassFile : string = ''
Return values
ReflectionClass —runFailed()
Override to define how to handle a failed loading of a test suite.
protected
abstract runFailed(string $message) : mixed
Parameters
- $message : string