Simple Testrunner for PHPUnit that runs all tests of a testsuite.
author |
Michiel Rook mrook@php.net |
---|---|
version |
$Id: 77ea1859b96ca9889af0e465b1a27a09600557da $ |
package |
phing.tasks.ext.phpunit |
since | 2.1.0 |
__construct(\Project $project, array $groups = array(), array $excludeGroups = array(), boolean $processIsolation = false)
addError(\PHPUnit_Framework_Test $test, \Exception $e, float $time)
\PHPUnit_Framework_Test
\Exception
float
addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, float $time)
\PHPUnit_Framework_Test
\PHPUnit_Framework_AssertionFailedError
float
addFormatter( $formatter)
addIncompleteTest(\PHPUnit_Framework_Test $test, \Exception $e, float $time)
\PHPUnit_Framework_Test
\Exception
float
addListener( $listener)
addRiskyTest(\PHPUnit_Framework_Test $test, \Exception $e, float $time)
\PHPUnit_Framework_Test
\Exception
float
addSkippedTest(\PHPUnit_Framework_Test $test, \Exception $e, float $time)
since |
Method available since Release 3.0.0 |
---|---|
\PHPUnit_Framework_Test
\Exception
float
checkResult( $res)
composeMessage(string $message, \PHPUnit_Framework_Test $test, \Exception $e) : string
string
\PHPUnit_Framework_Test
\Exception
string
endTest(\PHPUnit_Framework_Test $test, float $time)
\PHPUnit_Framework_Test
float
endTestSuite(\PHPUnit_Framework_TestSuite $suite)
since |
Method available since Release 2.2.0 |
---|---|
\PHPUnit_Framework_TestSuite
getLastErrorMessage() : string
string
getLastFailureMessage() : string
string
getLastIncompleteMessage() : string
string
getLastSkippedMessage() : string
string
handleError( $level, $message, $file, $line)
hasErrors() : boolean
boolean
hasFailures() : boolean
boolean
hasIncomplete() : boolean
boolean
hasSkipped() : boolean
boolean
injectFilters(\PHPUnit_Framework_TestSuite $suite)
\PHPUnit_Framework_TestSuite
run(\PHPUnit_Framework_TestSuite $suite)
\PHPUnit_Framework_TestSuite
runFailed(string $message)
throws | |
---|---|
string
setCodecoverage( $codecoverage)
setUseCustomErrorHandler( $useCustomErrorHandler)
startTest(\PHPUnit_Framework_Test $test)
\PHPUnit_Framework_Test
startTestSuite(\PHPUnit_Framework_TestSuite $suite)
since |
Method available since Release 2.2.0 |
---|---|
\PHPUnit_Framework_TestSuite
testEnded(string $testName)
string
testFailed(integer $status, \PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e)
integer
\PHPUnit_Framework_Test
\PHPUnit_Framework_AssertionFailedError
testStarted(string $testName)
string
hasErrors :
hasFailures :
hasIncomplete :
hasSkipped :
lastErrorMessage :
lastFailureMessage :
lastIncompleteMessage :
lastSkippedMessage :
formatters :
listeners :
codecoverage :
project :
groups :
excludeGroups :
processIsolation :
useCustomErrorHandler :