\PHPUnit_TextUI_TestRunner

A TestRunner for the Command Line Interface (CLI) PHP SAPI Module.

Synopsis

class PHPUnit_TextUI_TestRunner extends PHPUnit_Runner_BaseTestRunner {
  • // constants
  • const SUCCESS_EXIT = 0;
  • const FAILURE_EXIT = 1;
  • const EXCEPTION_EXIT = 2;
  • // Inherited methods from PHPUnit_Runner_BaseTestRunner
  • public PHPUnit_Runner_TestSuiteLoader getLoader()
  • public PHPUnit_Framework_Test getTest()
  • protected ReflectionClass loadSuiteClass()
  • protected void clearStatus()
  • protected abstract void runFailed()
}

Hierarchy

Violations

PHPMessDetector

Line Rule Message
186 - 524 CyclomaticComplexity The method doRun() has a Cyclomatic Complexity of 55. The configured cyclomatic complexity threshold is 10.
186 - 524 NPathComplexity The method doRun() has an NPath complexity of 49212272148480. The configured NPath complexity threshold is 200.
186 - 524 ExcessiveMethodLength The method doRun() has 339 lines of code. Current threshold is set to 100. Avoid really long methods.
543 ExitExpression The method runFailed() contains an exit expression.
582 - 930 CyclomaticComplexity The method handleConfiguration() has a Cyclomatic Complexity of 140. The configured cyclomatic complexity threshold is 10.
582 - 930 NPathComplexity The method handleConfiguration() has an NPath complexity of 29296875. The configured NPath complexity threshold is 200.
582 - 930 ExcessiveMethodLength The method handleConfiguration() has 349 lines of code. Current threshold is set to 100. Avoid really long methods.
966 ExitExpression The method showMessage() contains an exit expression.

Checkstyle

Line Column Severity Message
342 34 error Only one argument is allowed per line in a multi-line function call
346 31 error Only one argument is allowed per line in a multi-line function call
355 23 error Only one argument is allowed per line in a multi-line function call
406 49 error Only one argument is allowed per line in a multi-line function call
702 128 warning Line exceeds 120 characters; contains 127 characters
782 124 warning Line exceeds 120 characters; contains 123 characters
805 53 error Only one argument is allowed per line in a multi-line function call
842 132 warning Line exceeds 120 characters; contains 131 characters
843 140 warning Line exceeds 120 characters; contains 139 characters
859 43 error Only one argument is allowed per line in a multi-line function call
859 59 error Only one argument is allowed per line in a multi-line function call
859 75 error Only one argument is allowed per line in a multi-line function call
869 43 error Only one argument is allowed per line in a multi-line function call
869 59 error Only one argument is allowed per line in a multi-line function call
869 75 error Only one argument is allowed per line in a multi-line function call
880 39 error Only one argument is allowed per line in a multi-line function call
880 55 error Only one argument is allowed per line in a multi-line function call
890 39 error Only one argument is allowed per line in a multi-line function call
890 55 error Only one argument is allowed per line in a multi-line function call
900 174 warning Line exceeds 120 characters; contains 173 characters
901 175 warning Line exceeds 120 characters; contains 174 characters
902 174 warning Line exceeds 120 characters; contains 173 characters
903 174 warning Line exceeds 120 characters; contains 173 characters
904 175 warning Line exceeds 120 characters; contains 174 characters
905 175 warning Line exceeds 120 characters; contains 174 characters
906 174 warning Line exceeds 120 characters; contains 173 characters
907 174 warning Line exceeds 120 characters; contains 173 characters
908 174 warning Line exceeds 120 characters; contains 173 characters
909 177 warning Line exceeds 120 characters; contains 176 characters
910 177 warning Line exceeds 120 characters; contains 176 characters
911 175 warning Line exceeds 120 characters; contains 174 characters
912 175 warning Line exceeds 120 characters; contains 174 characters
913 175 warning Line exceeds 120 characters; contains 174 characters
914 172 warning Line exceeds 120 characters; contains 171 characters
915 172 warning Line exceeds 120 characters; contains 171 characters
916 175 warning Line exceeds 120 characters; contains 174 characters
917 175 warning Line exceeds 120 characters; contains 174 characters
918 175 warning Line exceeds 120 characters; contains 174 characters
919 175 warning Line exceeds 120 characters; contains 174 characters
920 175 warning Line exceeds 120 characters; contains 174 characters
921 171 warning Line exceeds 120 characters; contains 170 characters
922 172 warning Line exceeds 120 characters; contains 171 characters
923 172 warning Line exceeds 120 characters; contains 171 characters
924 175 warning Line exceeds 120 characters; contains 174 characters
925 175 warning Line exceeds 120 characters; contains 174 characters
926 175 warning Line exceeds 120 characters; contains 174 characters
927 175 warning Line exceeds 120 characters; contains 174 characters
928 175 warning Line exceeds 120 characters; contains 174 characters
929 175 warning Line exceeds 120 characters; contains 174 characters

Constants

Name Value
SUCCESS_EXIT 0
FAILURE_EXIT 1
EXCEPTION_EXIT 2
STATUS_PASSED 0
STATUS_SKIPPED 1
STATUS_INCOMPLETE 2
STATUS_FAILURE 3
STATUS_ERROR 4
STATUS_RISKY 5
SUITE_METHODNAME 'suite'

Members

private

  • $canCollectCodeCoverage — boolean
  • $missingExtensions — array

protected

Methods

private

protected

public

Inherited from PHPUnit_Runner_BaseTestRunner

protected

  • clearStatus() — Clears the status message.
  • loadSuiteClass() — Returns the loaded ReflectionClass for a suite name.
  • runFailed() — Override to define how to handle a failed loading of a test suite.

public

  • getLoader() — Returns the loader to be used.
  • getTest() — Returns the Test corresponding to the given suite.

History