|  | 
|  | __construct ($out=null, $verbose=false, $colors=self::COLOR_DEFAULT, $debug=false, $numberOfColumns=80, $reverse=false) | 
|  | 
|  | printResult (TestResult $result) | 
|  | 
|  | printWaitPrompt () | 
|  | 
|  | addError (Test $test, \Exception $e, $time) | 
|  | 
|  | addFailure (Test $test, AssertionFailedError $e, $time) | 
|  | 
|  | addWarning (Test $test, Warning $e, $time) | 
|  | 
|  | addIncompleteTest (Test $test, \Exception $e, $time) | 
|  | 
|  | addRiskyTest (Test $test, \Exception $e, $time) | 
|  | 
|  | addSkippedTest (Test $test, \Exception $e, $time) | 
|  | 
|  | startTestSuite (TestSuite $suite) | 
|  | 
|  | endTestSuite (TestSuite $suite) | 
|  | 
|  | startTest (Test $test) | 
|  | 
|  | endTest (Test $test, $time) | 
|  | 
|  | __construct ($out=null) | 
|  | 
|  | flush () | 
|  | 
|  | incrementalFlush () | 
|  | 
|  | write ($buffer) | 
|  | 
|  | getAutoFlush () | 
|  | 
|  | setAutoFlush ($autoFlush) | 
|  | 
|  | 
| const | EVENT_TEST_START = 0 | 
|  | 
| const | EVENT_TEST_END = 1 | 
|  | 
| const | EVENT_TESTSUITE_START = 2 | 
|  | 
| const | EVENT_TESTSUITE_END = 3 | 
|  | 
| const | COLOR_NEVER = 'never' | 
|  | 
| const | COLOR_AUTO = 'auto' | 
|  | 
| const | COLOR_ALWAYS = 'always' | 
|  | 
| const | COLOR_DEFAULT = self::COLOR_NEVER | 
|  | 
|  | 
|  | $column = 0 | 
|  | 
|  | $maxColumn | 
|  | 
|  | $lastTestFailed = false | 
|  | 
|  | $numAssertions = 0 | 
|  | 
|  | $numTests = -1 | 
|  | 
|  | $numTestsRun = 0 | 
|  | 
|  | $numTestsWidth | 
|  | 
|  | $colors = false | 
|  | 
|  | $debug = false | 
|  | 
|  | $verbose = false | 
|  | 
|  | $autoFlush = false | 
|  | 
|  | $out | 
|  | 
|  | $outTarget | 
|  | 
Prints the result of a TextUI TestRunner run. 
◆ __construct()
      
        
          | PHPUnit\TextUI\ResultPrinter::__construct | ( |  | $out = null, | 
        
          |  |  |  | $verbose = false, | 
        
          |  |  |  | $colors = self::COLOR_DEFAULT, | 
        
          |  |  |  | $debug = false, | 
        
          |  |  |  | $numberOfColumns = 80, | 
        
          |  |  |  | $reverse = false | 
        
          |  | ) |  |  | 
      
 
Constructor.
- Parameters
- 
  
    | mixed | $out |  |  | bool | $verbose |  |  | string | $colors |  |  | bool | $debug |  |  | int | string | $numberOfColumns |  |  | bool | $reverse |  |  
 
- Exceptions
- 
  
  
 
 
◆ addError()
      
        
          | PHPUnit\TextUI\ResultPrinter::addError | ( | Test | $test, | 
        
          |  |  | \Exception | $e, | 
        
          |  |  |  | $time | 
        
          |  | ) |  |  | 
      
 
 
◆ addFailure()
◆ addIncompleteTest()
      
        
          | PHPUnit\TextUI\ResultPrinter::addIncompleteTest | ( | Test | $test, | 
        
          |  |  | \Exception | $e, | 
        
          |  |  |  | $time | 
        
          |  | ) |  |  | 
      
 
 
◆ addRiskyTest()
      
        
          | PHPUnit\TextUI\ResultPrinter::addRiskyTest | ( | Test | $test, | 
        
          |  |  | \Exception | $e, | 
        
          |  |  |  | $time | 
        
          |  | ) |  |  | 
      
 
 
◆ addSkippedTest()
      
        
          | PHPUnit\TextUI\ResultPrinter::addSkippedTest | ( | Test | $test, | 
        
          |  |  | \Exception | $e, | 
        
          |  |  |  | $time | 
        
          |  | ) |  |  | 
      
 
 
◆ addWarning()
      
        
          | PHPUnit\TextUI\ResultPrinter::addWarning | ( | Test | $test, | 
        
          |  |  | Warning | $e, | 
        
          |  |  |  | $time | 
        
          |  | ) |  |  | 
      
 
 
◆ endTest()
      
        
          | PHPUnit\TextUI\ResultPrinter::endTest | ( | Test | $test, | 
        
          |  |  |  | $time | 
        
          |  | ) |  |  | 
      
 
 
◆ endTestSuite()
      
        
          | PHPUnit\TextUI\ResultPrinter::endTestSuite | ( | TestSuite | $suite | ) |  | 
      
 
 
◆ formatWithColor()
  
  | 
        
          | PHPUnit\TextUI\ResultPrinter::formatWithColor | ( |  | $color, |  
          |  |  |  | $buffer |  
          |  | ) |  |  |  | protected | 
 
Formats a buffer with a specified ANSI color sequence if colors are enabled.
- Parameters
- 
  
    | string | $color |  |  | string | $buffer |  |  
 
- Returns
- string 
 
 
◆ printDefect()
  
  | 
        
          | PHPUnit\TextUI\ResultPrinter::printDefect | ( | TestFailure | $defect, |  
          |  |  |  | $count |  
          |  | ) |  |  |  | protected | 
 
- Parameters
- 
  
    | TestFailure | $defect |  |  | int | $count |  |  
 
 
 
◆ printDefectHeader()
  
  | 
        
          | PHPUnit\TextUI\ResultPrinter::printDefectHeader | ( | TestFailure | $defect, |  
          |  |  |  | $count |  
          |  | ) |  |  |  | protected | 
 
- Parameters
- 
  
    | TestFailure | $defect |  |  | int | $count |  |  
 
 
 
◆ printDefects()
  
  | 
        
          | PHPUnit\TextUI\ResultPrinter::printDefects | ( | array | $defects, |  
          |  |  |  | $type |  
          |  | ) |  |  |  | protected | 
 
- Parameters
- 
  
    | array | $defects |  |  | string | $type |  |  
 
 
 
◆ printDefectTrace()
  
  | 
        
          | PHPUnit\TextUI\ResultPrinter::printDefectTrace | ( | TestFailure | $defect | ) |  |  | protected | 
 
 
◆ printErrors()
  
  | 
        
          | PHPUnit\TextUI\ResultPrinter::printErrors | ( | TestResult | $result | ) |  |  | protected | 
 
 
◆ printFailures()
  
  | 
        
          | PHPUnit\TextUI\ResultPrinter::printFailures | ( | TestResult | $result | ) |  |  | protected | 
 
 
◆ printFooter()
  
  | 
        
          | PHPUnit\TextUI\ResultPrinter::printFooter | ( | TestResult | $result | ) |  |  | protected | 
 
 
◆ printIncompletes()
  
  | 
        
          | PHPUnit\TextUI\ResultPrinter::printIncompletes | ( | TestResult | $result | ) |  |  | protected | 
 
 
◆ printResult()
      
        
          | PHPUnit\TextUI\ResultPrinter::printResult | ( | TestResult | $result | ) |  | 
      
 
 
◆ printRisky()
  
  | 
        
          | PHPUnit\TextUI\ResultPrinter::printRisky | ( | TestResult | $result | ) |  |  | protected | 
 
 
◆ printSkipped()
  
  | 
        
          | PHPUnit\TextUI\ResultPrinter::printSkipped | ( | TestResult | $result | ) |  |  | protected | 
 
 
◆ printWarnings()
  
  | 
        
          | PHPUnit\TextUI\ResultPrinter::printWarnings | ( | TestResult | $result | ) |  |  | protected | 
 
 
◆ startTest()
      
        
          | PHPUnit\TextUI\ResultPrinter::startTest | ( | Test | $test | ) |  | 
      
 
 
◆ startTestSuite()
      
        
          | PHPUnit\TextUI\ResultPrinter::startTestSuite | ( | TestSuite | $suite | ) |  | 
      
 
 
◆ writeProgress()
  
  | 
        
          | PHPUnit\TextUI\ResultPrinter::writeProgress | ( |  | $progress | ) |  |  | protected | 
 
 
◆ writeProgressWithColor()
  
  | 
        
          | PHPUnit\TextUI\ResultPrinter::writeProgressWithColor | ( |  | $color, |  
          |  |  |  | $buffer |  
          |  | ) |  |  |  | protected | 
 
Writes progress with a color sequence if colors are enabled.
- Parameters
- 
  
    | string | $color |  |  | string | $buffer |  |  
 
 
 
◆ writeWithColor()
  
  | 
        
          | PHPUnit\TextUI\ResultPrinter::writeWithColor | ( |  | $color, |  
          |  |  |  | $buffer, |  
          |  |  |  | $lf = true |  
          |  | ) |  |  |  | protected | 
 
Writes a buffer out with a color sequence if colors are enabled.
- Parameters
- 
  
    | string | $color |  |  | string | $buffer |  |  | bool | $lf |  |  
 
 
 
The documentation for this class was generated from the following file:
- vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php