PHPUnit_TextUI_TestRunner
extends PHPUnit_Runner_BaseTestRunner
in package
A TestRunner for the Command Line Interface (CLI) PHP SAPI Module.
Tags
Table of Contents
- EXCEPTION_EXIT = 2
- FAILURE_EXIT = 1
- STATUS_ERROR = 4
- STATUS_FAILURE = 3
- STATUS_INCOMPLETE = 2
- STATUS_PASSED = 0
- STATUS_RISKY = 5
- STATUS_SKIPPED = 1
- SUCCESS_EXIT = 0
- SUITE_METHODNAME = 'suite'
- $codeCoverageFilter : PHP_CodeCoverage_Filter
- $loader : PHPUnit_Runner_TestSuiteLoader
- $printer : PHPUnit_TextUI_ResultPrinter
- $versionStringPrinted : bool
- $missingExtensions : array<string|int, mixed>
- $runtime : Runtime
- __construct() : mixed
- doRun() : PHPUnit_Framework_TestResult
- getLoader() : PHPUnit_Runner_TestSuiteLoader
- Returns the loader to be used.
- getTest() : PHPUnit_Framework_Test
- Returns the Test corresponding to the given suite.
- run() : PHPUnit_Framework_TestResult
- setPrinter() : mixed
- clearStatus() : mixed
- Clears the status message.
- createTestResult() : PHPUnit_Framework_TestResult
- handleConfiguration() : mixed
- 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.
- write() : mixed
- getCodeCoverageFilter() : PHP_CodeCoverage_Filter
- processSuiteFilters() : mixed
- showExtensionNotLoadedWarning() : mixed
Constants
EXCEPTION_EXIT
public
mixed
EXCEPTION_EXIT
= 2
FAILURE_EXIT
public
mixed
FAILURE_EXIT
= 1
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
SUCCESS_EXIT
public
mixed
SUCCESS_EXIT
= ""
SUITE_METHODNAME
public
mixed
SUITE_METHODNAME
= 'suite'
Properties
$codeCoverageFilter
protected
PHP_CodeCoverage_Filter
$codeCoverageFilter
$loader
protected
PHPUnit_Runner_TestSuiteLoader
$loader
=
ull
$printer
protected
PHPUnit_TextUI_ResultPrinter
$printer
=
ull
$versionStringPrinted
protected
static bool
$versionStringPrinted
= alse
$missingExtensions
private
array<string|int, mixed>
$missingExtensions
= array()
$runtime
private
Runtime
$runtime
Methods
__construct()
public
__construct([PHPUnit_Runner_TestSuiteLoader $loader = null ][, PHP_CodeCoverage_Filter $filter = null ]) : mixed
Parameters
- $loader : PHPUnit_Runner_TestSuiteLoader = null
- $filter : PHP_CodeCoverage_Filter = null
Tags
Return values
mixed —doRun()
public
doRun(PHPUnit_Framework_Test $suite[, array<string|int, mixed> $arguments = array() ]) : PHPUnit_Framework_TestResult
Parameters
- $suite : PHPUnit_Framework_Test
- $arguments : array<string|int, mixed> = array()
Return values
PHPUnit_Framework_TestResult —getLoader()
Returns the loader to be used.
public
getLoader() : PHPUnit_Runner_TestSuiteLoader
Tags
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 —run()
public
static run(PHPUnit_Framework_Test|ReflectionClass $test[, array<string|int, mixed> $arguments = array() ]) : PHPUnit_Framework_TestResult
Parameters
- $test : PHPUnit_Framework_Test|ReflectionClass
- $arguments : array<string|int, mixed> = array()
Tags
Return values
PHPUnit_Framework_TestResult —setPrinter()
public
setPrinter(PHPUnit_TextUI_ResultPrinter $resultPrinter) : mixed
Parameters
- $resultPrinter : PHPUnit_TextUI_ResultPrinter
Return values
mixed —clearStatus()
Clears the status message.
protected
clearStatus() : mixed
Return values
mixed —createTestResult()
protected
createTestResult() : PHPUnit_Framework_TestResult
Return values
PHPUnit_Framework_TestResult —handleConfiguration()
protected
handleConfiguration(array<string|int, mixed> &$arguments) : mixed
Parameters
- $arguments : array<string|int, mixed>
Tags
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
runFailed(string $message) : mixed
Parameters
- $message : string
Return values
mixed —write()
protected
write(string $buffer) : mixed
Parameters
- $buffer : string
Tags
Return values
mixed —getCodeCoverageFilter()
private
getCodeCoverageFilter() : PHP_CodeCoverage_Filter
Return values
PHP_CodeCoverage_Filter —processSuiteFilters()
private
processSuiteFilters(PHPUnit_Framework_TestSuite $suite, array<string|int, mixed> $arguments) : mixed
Parameters
- $suite : PHPUnit_Framework_TestSuite
- $arguments : array<string|int, mixed>
Return values
mixed —showExtensionNotLoadedWarning()
private
showExtensionNotLoadedWarning( $extension[, string $message = '' ]) : mixed