• internal This class is not covered by the backward compatibility promise for PHPUnit
CloneableFinalInstantiable
ExtendsPHPUnit\Runner\BaseTestRunner
Constants
public PHPUnit\TextUI\TestRunner::EXCEPTION_EXIT = 2
public PHPUnit\TextUI\TestRunner::FAILURE_EXIT = 1
public PHPUnit\Runner\BaseTestRunner::STATUS_ERROR = 4
 
  • var int
public PHPUnit\Runner\BaseTestRunner::STATUS_FAILURE = 3
 
  • var int
public PHPUnit\Runner\BaseTestRunner::STATUS_INCOMPLETE = 2
 
  • var int
public PHPUnit\Runner\BaseTestRunner::STATUS_PASSED = 0
 
  • var int
public PHPUnit\Runner\BaseTestRunner::STATUS_RISKY = 5
 
  • var int
public PHPUnit\Runner\BaseTestRunner::STATUS_SKIPPED = 1
 
  • var int
public PHPUnit\Runner\BaseTestRunner::STATUS_UNKNOWN = -1
 
  • var int
public PHPUnit\Runner\BaseTestRunner::STATUS_WARNING = 6
 
  • var int
public PHPUnit\TextUI\TestRunner::SUCCESS_EXIT = 0
public PHPUnit\Runner\BaseTestRunner::SUITE_METHODNAME = 'suite'
 
  • var string
Methods
public __construct(?PHPUnit\Runner\TestSuiteLoader $loader = NULL, ?SebastianBergmann\CodeCoverage\Filter $filter = NULL)
public addExtension(PHPUnit\Runner\Hook $extension) : void
public doRun(PHPUnit\Framework\Test $suite, array $arguments = [], bool $exit = true) : PHPUnit\Framework\TestResult
public getLoader() : PHPUnit\Runner\TestSuiteLoader
 

Returns the loader to be used.

public PHPUnit\Runner\BaseTestRunner::getTest(string $suiteClassName, string $suiteClassFile = '', $suffixes = '') : PHPUnit\Framework\Test
 

Returns the Test corresponding to the given suite.

This is a template method, subclasses override
the runFailed() and clearStatus() methods.

public setPrinter(PHPUnit\TextUI\ResultPrinter $resultPrinter) : void
Methods
protected PHPUnit\Runner\BaseTestRunner::clearStatus() : void
 

Clears the status message.

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

Returns the loaded ReflectionClass for a suite name.

protected runFailed(string $message) : void
 

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

Properties
private $codeCoverageFilter
 
  • var CodeCoverageFilter
private $extensions
 
  • var Hook[]
private $loader
 
  • var TestSuiteLoader
private $messagePrinted
 
  • var bool
private $printer
 
  • var Printer&\TestListener
private $runtime
 
  • var Runtime
private static $versionStringPrinted
 
  • var bool
Methods
private codeCoverageGenerationFailed(PHPUnit\TextUI\Exception $e) : void
private codeCoverageGenerationStart(string $format) : void
private codeCoverageGenerationSucceeded() : void
private createPrinter(string $class, array $arguments) : PHPUnit\Util\Printer
 
  • template T as Printer
  • return T
private createTestResult() : PHPUnit\Framework\TestResult
private handleConfiguration(array $arguments) : void
private processSuiteFilters(PHPUnit\Framework\TestSuite $suite, array $arguments) : void
private write(string $buffer) : void
private writeMessage(string $type, string $message) : void
Properties
private static $versionStringPrinted
 
  • var bool
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only