\PHPUnit_TextUI_ResultPrinter

Prints the result of a TextUI TestRunner run.

Synopsis

class PHPUnit_TextUI_ResultPrinter extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener {
  • // constants
  • const EVENT_TEST_START = 0;
  • const EVENT_TEST_END = 1;
  • const EVENT_TESTSUITE_START = 2;
  • const EVENT_TESTSUITE_END = 3;
}

Hierarchy

Violations

PHPMessDetector

Line Rule Message
165 - 206 CyclomaticComplexity The method printResult() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10.
325 - 386 CyclomaticComplexity The method printFooter() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10.

Checkstyle

Line Column Severity Message
359 57 error Only one argument is allowed per line in a multi-line function call
362 50 error Only one argument is allowed per line in a multi-line function call
365 48 error Only one argument is allowed per line in a multi-line function call
380 57 error Only one argument is allowed per line in a multi-line function call
518 48 error Only one argument is allowed per line in a multi-line function call

Constants

Name Value
EVENT_TEST_START 0
EVENT_TEST_END 1
EVENT_TESTSUITE_START 2
EVENT_TESTSUITE_END 3

Members

private

  • $ansiCodes — array

protected

  • $autoFlush — boolean
    If true, flush output after every write.
  • $colors — boolean
  • $column — integer
  • $debug — boolean
  • $lastTestFailed — boolean
  • $maxColumn — integer
  • $numAssertions — integer
  • $numTests — integer
  • $numTestsRun — integer
  • $numTestsWidth — integer
  • $out — resource
  • $outTarget — string
  • $printsHTML — boolean
  • $verbose — boolean

Methods

protected

public

Inherited from PHPUnit_Util_Printer

public

History