Lggr
Public Member Functions | Protected Member Functions | List of all members
PHPUnit\Util\Log\TeamCity Class Reference
Inheritance diagram for PHPUnit\Util\Log\TeamCity:
Inheritance graph
[legend]
Collaboration diagram for PHPUnit\Util\Log\TeamCity:
Collaboration graph
[legend]

Public Member Functions

 printResult (TestResult $result)
 
 addError (Test $test, \Exception $e, $time)
 
 addWarning (Test $test, Warning $e, $time)
 
 addFailure (Test $test, AssertionFailedError $e, $time)
 
 addIncompleteTest (Test $test, \Exception $e, $time)
 
 addRiskyTest (Test $test, \Exception $e, $time)
 
 addSkippedTest (Test $test, \Exception $e, $time)
 
 printIgnoredTest ($testName, \Exception $e, $time)
 
 startTestSuite (TestSuite $suite)
 
 endTestSuite (TestSuite $suite)
 
 startTest (Test $test)
 
 endTest (Test $test, $time)
 
- Public Member Functions inherited from PHPUnit\TextUI\ResultPrinter
 __construct ($out=null, $verbose=false, $colors=self::COLOR_DEFAULT, $debug=false, $numberOfColumns=80, $reverse=false)
 
 printWaitPrompt ()
 
 addWarning (Test $test, Warning $e, $time)
 
- Public Member Functions inherited from PHPUnit\Util\Printer
 __construct ($out=null)
 
 flush ()
 
 incrementalFlush ()
 
 write ($buffer)
 
 getAutoFlush ()
 
 setAutoFlush ($autoFlush)
 

Protected Member Functions

 writeProgress ($progress)
 
- Protected Member Functions inherited from PHPUnit\TextUI\ResultPrinter
 printDefects (array $defects, $type)
 
 printDefect (TestFailure $defect, $count)
 
 printDefectHeader (TestFailure $defect, $count)
 
 printDefectTrace (TestFailure $defect)
 
 printErrors (TestResult $result)
 
 printFailures (TestResult $result)
 
 printWarnings (TestResult $result)
 
 printIncompletes (TestResult $result)
 
 printRisky (TestResult $result)
 
 printSkipped (TestResult $result)
 
 printHeader ()
 
 printFooter (TestResult $result)
 
 writeNewLine ()
 
 formatWithColor ($color, $buffer)
 
 writeWithColor ($color, $buffer, $lf=true)
 
 writeProgressWithColor ($color, $buffer)
 

Additional Inherited Members

- Public Attributes inherited from PHPUnit\TextUI\ResultPrinter
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
 
- Protected Attributes inherited from PHPUnit\TextUI\ResultPrinter
 $column = 0
 
 $maxColumn
 
 $lastTestFailed = false
 
 $numAssertions = 0
 
 $numTests = -1
 
 $numTestsRun = 0
 
 $numTestsWidth
 
 $colors = false
 
 $debug = false
 
 $verbose = false
 
- Protected Attributes inherited from PHPUnit\Util\Printer
 $autoFlush = false
 
 $out
 
 $outTarget
 

Detailed Description

A TestListener that generates a logfile of the test execution using the TeamCity format (for use with PhpStorm, for instance).

Member Function Documentation

◆ addError()

PHPUnit\Util\Log\TeamCity::addError ( Test  $test,
\Exception  $e,
  $time 
)

An error occurred.

Parameters
Test$test
\Exception$e
float$time

Reimplemented from PHPUnit\TextUI\ResultPrinter.

◆ addFailure()

PHPUnit\Util\Log\TeamCity::addFailure ( Test  $test,
AssertionFailedError  $e,
  $time 
)

A failure occurred.

Parameters
Test$test
AssertionFailedError$e
float$time

Reimplemented from PHPUnit\TextUI\ResultPrinter.

◆ addIncompleteTest()

PHPUnit\Util\Log\TeamCity::addIncompleteTest ( Test  $test,
\Exception  $e,
  $time 
)

Incomplete test.

Parameters
Test$test
\Exception$e
float$time

Reimplemented from PHPUnit\TextUI\ResultPrinter.

◆ addRiskyTest()

PHPUnit\Util\Log\TeamCity::addRiskyTest ( Test  $test,
\Exception  $e,
  $time 
)

Risky test.

Parameters
Test$test
\Exception$e
float$time

Reimplemented from PHPUnit\TextUI\ResultPrinter.

◆ addSkippedTest()

PHPUnit\Util\Log\TeamCity::addSkippedTest ( Test  $test,
\Exception  $e,
  $time 
)

Skipped test.

Parameters
Test$test
\Exception$e
float$time

Reimplemented from PHPUnit\TextUI\ResultPrinter.

◆ addWarning()

PHPUnit\Util\Log\TeamCity::addWarning ( Test  $test,
Warning  $e,
  $time 
)

A warning occurred.

Parameters
Test$test
Warning$e
float$time

◆ endTest()

PHPUnit\Util\Log\TeamCity::endTest ( Test  $test,
  $time 
)

A test ended.

Parameters
Test$test
float$time

Reimplemented from PHPUnit\TextUI\ResultPrinter.

◆ endTestSuite()

PHPUnit\Util\Log\TeamCity::endTestSuite ( TestSuite  $suite)

A testsuite ended.

Parameters
TestSuite$suite

Reimplemented from PHPUnit\TextUI\ResultPrinter.

◆ printResult()

PHPUnit\Util\Log\TeamCity::printResult ( TestResult  $result)
Parameters
TestResult$result

Reimplemented from PHPUnit\TextUI\ResultPrinter.

◆ startTest()

PHPUnit\Util\Log\TeamCity::startTest ( Test  $test)

A test started.

Parameters
Test$test

Reimplemented from PHPUnit\TextUI\ResultPrinter.

◆ startTestSuite()

PHPUnit\Util\Log\TeamCity::startTestSuite ( TestSuite  $suite)

A testsuite started.

Parameters
TestSuite$suite

Reimplemented from PHPUnit\TextUI\ResultPrinter.

◆ writeProgress()

PHPUnit\Util\Log\TeamCity::writeProgress (   $progress)
protected
Parameters
string$progress

Reimplemented from PHPUnit\TextUI\ResultPrinter.


The documentation for this class was generated from the following file: