Property | Type | Description | |
---|---|---|---|
$beStrictAboutOutputDuringTests | boolean | ||
$beStrictAboutResourceUsageDuringSmallTests | boolean | ||
$beStrictAboutTestsThatDoNotTestAnything | boolean | ||
$beStrictAboutTodoAnnotatedTests | boolean | ||
$codeCoverage | SebastianBergmann\CodeCoverage\CodeCoverage | Code Coverage information. | |
$convertErrorsToExceptions | boolean | ||
$enforceTimeLimit | boolean | ||
$errors | array | ||
$failures | array | ||
$lastTestFailed | boolean | ||
$listeners | array | ||
$notImplemented | array | ||
$passed | array | ||
$risky | array | ||
$runTests | integer | ||
$skipped | array | ||
$stop | boolean | ||
$stopOnError | boolean | ||
$stopOnFailure | boolean | ||
$stopOnIncomplete | boolean | ||
$stopOnRisky | boolean | ||
$stopOnSkipped | boolean | ||
$stopOnWarning | boolean | ||
$time | float | ||
$timeoutForLargeTests | integer | ||
$timeoutForMediumTests | integer | ||
$timeoutForSmallTests | integer | ||
$topTestSuite | PHPUnit_Framework_TestSuite | ||
$warnings | array |
Method | Description | |
---|---|---|
addError ( PHPUnit_Framework_Test $test, Throwable $t, float $time ) | Adds an error to the list of errors. | |
addFailure ( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, float $time ) | Adds a failure to the list of failures. | |
addListener ( PHPUnit_Framework_TestListener $listener ) | Registers a TestListener. | |
addWarning ( PHPUnit_Framework_Test $test, PHPUnit_Framework_Warning $e, float $time ) | Adds a warning to the list of warnings. | |
allCompletelyImplemented ( ) : boolean | Returns true if no incomplete test occurred. | |
allHarmless ( ) : boolean | Returns true if no risky test occurred. | |
beStrictAboutOutputDuringTests ( boolean $flag ) | ||
beStrictAboutResourceUsageDuringSmallTests ( boolean $flag ) | ||
beStrictAboutTestsThatDoNotTestAnything ( boolean $flag ) | ||
beStrictAboutTodoAnnotatedTests ( boolean $flag ) | ||
convertErrorsToExceptions ( boolean $flag ) | Enables or disables the error-to-exception conversion. | |
count ( ) : integer | Gets the number of run tests. | |
endTest ( PHPUnit_Framework_Test $test, float $time ) | Informs the result that a test was completed. | |
endTestSuite ( PHPUnit_Framework_TestSuite $suite ) | Informs the result that a testsuite was completed. | |
enforceTimeLimit ( boolean $flag ) | ||
enforcesTimeLimit ( ) : boolean | ||
errorCount ( ) : integer | Gets the number of detected errors. | |
errors ( ) : array | Returns an Enumeration for the errors. | |
failureCount ( ) : integer | Gets the number of detected failures. | |
failures ( ) : array | Returns an Enumeration for the failures. | |
flushListeners ( ) | Flushes all flushable TestListeners. | |
getCodeCoverage ( ) : SebastianBergmann\CodeCoverage\CodeCoverage | Returns the code coverage object. | |
getCollectCodeCoverageInformation ( ) : boolean | Returns whether code coverage information should be collected. | |
getConvertErrorsToExceptions ( ) : boolean | Returns the error-to-exception conversion setting. | |
getTimeoutForLargeTests ( ) : integer | Returns the set timeout for large tests. | |
isStrictAboutOutputDuringTests ( ) : boolean | ||
isStrictAboutResourceUsageDuringSmallTests ( ) : boolean | ||
isStrictAboutTestsThatDoNotTestAnything ( ) : boolean | ||
isStrictAboutTodoAnnotatedTests ( ) : boolean | ||
noneSkipped ( ) : boolean | Returns true if no test has been skipped. | |
notImplemented ( ) : array | Returns an Enumeration for the incomplete tests. | |
notImplementedCount ( ) : integer | Gets the number of incomplete tests. | |
passed ( ) : array | Returns the names of the tests that have passed. | |
removeListener ( PHPUnit_Framework_TestListener $listener ) | Unregisters a TestListener. | |
risky ( ) : array | Returns an Enumeration for the risky tests. | |
riskyCount ( ) : integer | Gets the number of risky tests. | |
run ( PHPUnit_Framework_Test $test ) | Runs a TestCase. | |
setCodeCoverage ( SebastianBergmann\CodeCoverage\CodeCoverage $codeCoverage ) | Sets the code coverage object. | |
setRegisterMockObjectsFromTestArgumentsRecursively ( boolean $flag ) | ||
setTimeoutForLargeTests ( integer $timeout ) | Sets the timeout for large tests. | |
setTimeoutForMediumTests ( integer $timeout ) | Sets the timeout for medium tests. | |
setTimeoutForSmallTests ( integer $timeout ) | Sets the timeout for small tests. | |
shouldStop ( ) : boolean | Checks whether the test run should stop. | |
skipped ( ) : array | Returns an Enumeration for the skipped tests. | |
skippedCount ( ) : integer | Gets the number of skipped tests. | |
startTest ( PHPUnit_Framework_Test $test ) | Informs the result that a test will be started. | |
startTestSuite ( PHPUnit_Framework_TestSuite $suite ) | Informs the result that a testsuite will be started. | |
stop ( ) | Marks that the test run should stop. | |
stopOnError ( boolean $flag ) | Enables or disables the stopping when an error occurs. | |
stopOnFailure ( boolean $flag ) | Enables or disables the stopping when a failure occurs. | |
stopOnIncomplete ( boolean $flag ) | Enables or disables the stopping for incomplete tests. | |
stopOnRisky ( boolean $flag ) | Enables or disables the stopping for risky tests. | |
stopOnSkipped ( boolean $flag ) | Enables or disables the stopping for skipped tests. | |
stopOnWarning ( boolean $flag ) | Enables or disables the stopping when a warning occurs. | |
time ( ) : float | Returns the time spent running the tests. | |
topTestSuite ( ) : PHPUnit_Framework_TestSuite | Returns the (top) test suite. | |
warningCount ( ) : integer | Gets the number of detected warnings. | |
warnings ( ) : array | Returns an Enumeration for the warnings. | |
wasSuccessful ( ) : boolean | Returns whether the entire test was successful or not. |
Method | Description | |
---|---|---|
getHierarchy ( string $className, boolean $asReflectionObjects = false ) : array | Returns the class hierarchy for a given class. |
public addFailure ( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, float $time ) | ||
$test | PHPUnit_Framework_Test | |
$e | PHPUnit_Framework_AssertionFailedError | |
$time | float |
public addListener ( PHPUnit_Framework_TestListener $listener ) | ||
$listener | PHPUnit_Framework_TestListener |
public addWarning ( PHPUnit_Framework_Test $test, PHPUnit_Framework_Warning $e, float $time ) | ||
$test | PHPUnit_Framework_Test | |
$e | PHPUnit_Framework_Warning | |
$time | float |
public allCompletelyImplemented ( ) : boolean | ||
return | boolean |
public allHarmless ( ) : boolean | ||
return | boolean |
public beStrictAboutOutputDuringTests ( boolean $flag ) | ||
$flag | boolean |
public beStrictAboutResourceUsageDuringSmallTests ( boolean $flag ) | ||
$flag | boolean |
public beStrictAboutTestsThatDoNotTestAnything ( boolean $flag ) | ||
$flag | boolean |
public beStrictAboutTodoAnnotatedTests ( boolean $flag ) | ||
$flag | boolean |
public convertErrorsToExceptions ( boolean $flag ) | ||
$flag | boolean |
public endTestSuite ( PHPUnit_Framework_TestSuite $suite ) | ||
$suite | PHPUnit_Framework_TestSuite |
public errorCount ( ) : integer | ||
return | integer |
public failureCount ( ) : integer | ||
return | integer |
public getCodeCoverage ( ) : SebastianBergmann\CodeCoverage\CodeCoverage | ||
return | SebastianBergmann\CodeCoverage\CodeCoverage |
public getCollectCodeCoverageInformation ( ) : boolean | ||
return | boolean | If code coverage should be collected |
public getConvertErrorsToExceptions ( ) : boolean | ||
return | boolean |
public getTimeoutForLargeTests ( ) : integer | ||
return | integer |
public isStrictAboutOutputDuringTests ( ) : boolean | ||
return | boolean |
public isStrictAboutResourceUsageDuringSmallTests ( ) : boolean | ||
return | boolean |
public isStrictAboutTestsThatDoNotTestAnything ( ) : boolean | ||
return | boolean |
public isStrictAboutTodoAnnotatedTests ( ) : boolean | ||
return | boolean |
public noneSkipped ( ) : boolean | ||
return | boolean |
public notImplemented ( ) : array | ||
return | array |
public notImplementedCount ( ) : integer | ||
return | integer |
public removeListener ( PHPUnit_Framework_TestListener $listener ) | ||
$listener | PHPUnit_Framework_TestListener |
public riskyCount ( ) : integer | ||
return | integer |
public run ( PHPUnit_Framework_Test $test ) | ||
$test | PHPUnit_Framework_Test |
public setCodeCoverage ( SebastianBergmann\CodeCoverage\CodeCoverage $codeCoverage ) | ||
$codeCoverage | SebastianBergmann\CodeCoverage\CodeCoverage |
public setRegisterMockObjectsFromTestArgumentsRecursively ( boolean $flag ) | ||
$flag | boolean |
public setTimeoutForLargeTests ( integer $timeout ) | ||
$timeout | integer |
public setTimeoutForMediumTests ( integer $timeout ) | ||
$timeout | integer |
public setTimeoutForSmallTests ( integer $timeout ) | ||
$timeout | integer |
public shouldStop ( ) : boolean | ||
return | boolean |
public skippedCount ( ) : integer | ||
return | integer |
public startTest ( PHPUnit_Framework_Test $test ) | ||
$test | PHPUnit_Framework_Test |
public startTestSuite ( PHPUnit_Framework_TestSuite $suite ) | ||
$suite | PHPUnit_Framework_TestSuite |
public stopOnError ( boolean $flag ) | ||
$flag | boolean |
public stopOnFailure ( boolean $flag ) | ||
$flag | boolean |
public stopOnIncomplete ( boolean $flag ) | ||
$flag | boolean |
public stopOnRisky ( boolean $flag ) | ||
$flag | boolean |
public stopOnSkipped ( boolean $flag ) | ||
$flag | boolean |
public stopOnWarning ( boolean $flag ) | ||
$flag | boolean |
public topTestSuite ( ) : PHPUnit_Framework_TestSuite | ||
return | PHPUnit_Framework_TestSuite |
public warningCount ( ) : integer | ||
return | integer |
public wasSuccessful ( ) : boolean | ||
return | boolean |
protected bool $beStrictAboutOutputDuringTests | ||
return | boolean |
protected bool $beStrictAboutResourceUsageDuringSmallTests | ||
return | boolean |
protected bool $beStrictAboutTestsThatDoNotTestAnything | ||
return | boolean |
protected bool $beStrictAboutTodoAnnotatedTests | ||
return | boolean |
protected CodeCoverage,SebastianBergmann\CodeCoverage $codeCoverage | ||
return | SebastianBergmann\CodeCoverage\CodeCoverage |
protected bool $convertErrorsToExceptions | ||
return | boolean |
protected PHPUnit_Framework_TestSuite $topTestSuite | ||
return | PHPUnit_Framework_TestSuite |