- \PHPUnit_Runner_BaseTestRunner
- \PHPUnit_TextUI_TestRunner
class (none) \ PHPUnit_TextUI_TestRunner
A TestRunner for the Command Line Interface (CLI) PHP SAPI Module.
Method Summary
Inherited Method Summary
Name | Description |
---|---|
clearStatus() | Clears the status message. (from 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. (from PHPUnit_Runner_BaseTestRunner) |
loadSuiteClass($suiteClassName, $suiteClassFile = "") | Returns the loaded ReflectionClass for a suite name. (from PHPUnit_Runner_BaseTestRunner) |
public function __construct(PHPUnit_Runner_TestSuiteLoader $loader = null, PHP_CodeCoverage_Filter $filter = null)
- Parameters:
PHPUnit_Runner_TestSuiteLoader
- $loaderPHP_CodeCoverage_Filter
- $filter- Defaults:
loader
=null
filter
=null
protected function createTestResult()
- Returns:
- PHPUnit_Framework_TestResult
public function doRun(PHPUnit_Framework_Test $suite, array $arguments = array())
- Parameters:
PHPUnit_Framework_Test
- $suitearray
- $arguments- Defaults:
arguments
= array()- Returns:
- PHPUnit_Framework_TestResult
private function getCodeCoverageFilter()
- Returns:
- PHP_CodeCoverage_Filter
public function getLoader()
Returns the loader to be used.
- Overrides:
- getLoader()
- Returns:
- PHPUnit_Runner_TestSuiteLoader
protected function handleConfiguration(array $arguments)
- Parameters:
array
- $arguments
private function processSuiteFilters(PHPUnit_Framework_TestSuite $suite, array $arguments)
public static function run($test, array $arguments = array())
- Parameters:
PHPUnit_Framework_Test|ReflectionClass
- $testarray
- $arguments- Defaults:
arguments
= array()- Returns:
- PHPUnit_Framework_TestResult
- Throws:
- PHPUnit_Framework_Exception
protected function runFailed($message)
Override to define how to handle a failed loading of a test suite.
- Overrides:
- runFailed($message)
- Parameters:
string
- $message
public function setPrinter(PHPUnit_TextUI_ResultPrinter $resultPrinter)
- Parameters:
PHPUnit_TextUI_ResultPrinter
- $resultPrinter
private function showExtensionNotLoadedMessage($extension, $message = "")
- Parameters:
$extension
-string
- $message- Defaults:
message
=""
private function showMessage($message, $exit = false)
Shows a message.
- Parameters:
string
- $messageboolean
- $exit- Defaults:
exit
=false
protected function write($buffer)
- Parameters:
string
- $buffer