Documentation

MockRunner extends PHPUnit_Runner_BaseTestRunner
in package

Base class for all test runners.

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

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

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(mixed $message) : mixed
Parameters
$message : mixed
Return values
mixed

Search results