Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
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 | ||
Результат | boolean |
public allHarmless ( ) : boolean | ||
Результат | 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 | ||
Результат | integer |
public failureCount ( ) : integer | ||
Результат | integer |
public getCodeCoverage ( ) : SebastianBergmann\CodeCoverage\CodeCoverage | ||
Результат | SebastianBergmann\CodeCoverage\CodeCoverage |
public getCollectCodeCoverageInformation ( ) : boolean | ||
Результат | boolean | If code coverage should be collected |
public getConvertErrorsToExceptions ( ) : boolean | ||
Результат | boolean |
public getTimeoutForLargeTests ( ) : integer | ||
Результат | integer |
public isStrictAboutOutputDuringTests ( ) : boolean | ||
Результат | boolean |
public isStrictAboutResourceUsageDuringSmallTests ( ) : boolean | ||
Результат | boolean |
public isStrictAboutTestsThatDoNotTestAnything ( ) : boolean | ||
Результат | boolean |
public isStrictAboutTodoAnnotatedTests ( ) : boolean | ||
Результат | boolean |
public noneSkipped ( ) : boolean | ||
Результат | boolean |
public notImplemented ( ) : array | ||
Результат | array |
public notImplementedCount ( ) : integer | ||
Результат | integer |
public removeListener ( PHPUnit_Framework_TestListener $listener ) | ||
$listener | PHPUnit_Framework_TestListener |
public riskyCount ( ) : integer | ||
Результат | 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 | ||
Результат | boolean |
public skippedCount ( ) : integer | ||
Результат | 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 | ||
Результат | PHPUnit_Framework_TestSuite |
public warningCount ( ) : integer | ||
Результат | integer |
public wasSuccessful ( ) : boolean | ||
Результат | boolean |
protected bool $beStrictAboutOutputDuringTests | ||
Результат | boolean |
protected bool $beStrictAboutResourceUsageDuringSmallTests | ||
Результат | boolean |
protected bool $beStrictAboutTestsThatDoNotTestAnything | ||
Результат | boolean |
protected bool $beStrictAboutTodoAnnotatedTests | ||
Результат | boolean |
protected CodeCoverage,SebastianBergmann\CodeCoverage $codeCoverage | ||
Результат | SebastianBergmann\CodeCoverage\CodeCoverage |
protected bool $convertErrorsToExceptions | ||
Результат | boolean |
protected PHPUnit_Framework_TestSuite $topTestSuite | ||
Результат | PHPUnit_Framework_TestSuite |