Lggr
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
PHPUnit\Runner\BaseTestRunner Class Reference
Inheritance diagram for PHPUnit\Runner\BaseTestRunner:
Inheritance graph
[legend]
Collaboration diagram for PHPUnit\Runner\BaseTestRunner:
Collaboration graph
[legend]

Public Member Functions

 getLoader ()
 
 getTest ($suiteClassName, $suiteClassFile='', $suffixes='')
 

Public Attributes

const STATUS_PASSED = 0
 
const STATUS_SKIPPED = 1
 
const STATUS_INCOMPLETE = 2
 
const STATUS_FAILURE = 3
 
const STATUS_ERROR = 4
 
const STATUS_RISKY = 5
 
const STATUS_WARNING = 6
 
const SUITE_METHODNAME = 'suite'
 

Protected Member Functions

 loadSuiteClass ($suiteClassName, $suiteClassFile='')
 
 clearStatus ()
 
 runFailed ($message)
 

Detailed Description

Base class for all test runners.

Member Function Documentation

◆ clearStatus()

PHPUnit\Runner\BaseTestRunner::clearStatus ( )
protected

Clears the status message.

◆ getLoader()

PHPUnit\Runner\BaseTestRunner::getLoader ( )

Returns the loader to be used.

Returns
TestSuiteLoader

Reimplemented in PHPUnit\TextUI\TestRunner.

◆ getTest()

PHPUnit\Runner\BaseTestRunner::getTest (   $suiteClassName,
  $suiteClassFile = '',
  $suffixes = '' 
)

Returns the Test corresponding to the given suite. This is a template method, subclasses override the runFailed() and clearStatus() methods.

Parameters
string$suiteClassName
string$suiteClassFile
mixed$suffixes
Returns
Test|null

◆ loadSuiteClass()

PHPUnit\Runner\BaseTestRunner::loadSuiteClass (   $suiteClassName,
  $suiteClassFile = '' 
)
protected

Returns the loaded ReflectionClass for a suite name.

Parameters
string$suiteClassName
string$suiteClassFile
Returns
ReflectionClass

◆ runFailed()

PHPUnit\Runner\BaseTestRunner::runFailed (   $message)
abstractprotected

Override to define how to handle a failed loading of a test suite.

Parameters
string$message

Reimplemented in PHPUnit\TextUI\TestRunner, and MockRunner.


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