Documentation

PHPUnit_TextUI_TestRunner extends PHPUnit_Runner_BaseTestRunner
in package

A TestRunner for the Command Line Interface (CLI) PHP SAPI Module.

Tags
since

Class available since Release 2.0.0

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

Properties

$versionStringPrinted

protected static bool $versionStringPrinted = alse

$missingExtensions

private array<string|int, mixed> $missingExtensions = array()

Methods

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

handleConfiguration()

protected handleConfiguration(array<string|int, mixed> &$arguments) : mixed
Parameters
$arguments : array<string|int, mixed>
Tags
since

Method available since Release 3.2.1

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
since

Method available since Release 3.1.0

Return values
mixed

showExtensionNotLoadedWarning()

private showExtensionNotLoadedWarning( $extension[, string $message = '' ]) : mixed
Parameters
$extension :
$message : string = ''
Tags
since

Method available since Release 4.7.3

Return values
mixed

Search results