file-fetcher
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PHPUnit\Util\TestDox\ResultPrinter Class Reference
Inheritance diagram for PHPUnit\Util\TestDox\ResultPrinter:
PHPUnit\Util\Printer PHPUnit\Framework\TestListener

Public Member Functions

 __construct ($out=null, array $groups=[], array $excludeGroups=[])
 
 flush ()
 
 addError (Test $test, \Throwable $t, float $time)
 
 addWarning (Test $test, Warning $e, float $time)
 
 addFailure (Test $test, AssertionFailedError $e, float $time)
 
 addIncompleteTest (Test $test, \Throwable $t, float $time)
 
 addRiskyTest (Test $test, \Throwable $t, float $time)
 
 addSkippedTest (Test $test, \Throwable $t, float $time)
 
 startTestSuite (TestSuite $suite)
 
 endTestSuite (TestSuite $suite)
 
 startTest (Test $test)
 
 endTest (Test $test, float $time)
 
- Public Member Functions inherited from PHPUnit\Util\Printer
 __construct ($out=null)
 
 incrementalFlush ()
 
 write (string $buffer)
 
 getAutoFlush ()
 
 setAutoFlush (bool $autoFlush)
 
- Public Member Functions inherited from PHPUnit\Framework\TestListener
 addWarning (Test $test, Warning $e, float $time)
 

Protected Member Functions

 doEndClass ()
 
 startRun ()
 
 startClass (string $name)
 
 onTest ($name, bool $success=true)
 
 endClass (string $name)
 
 endRun ()
 

Protected Attributes

 $prettifier
 
 $testClass = ''
 
 $testStatus
 
 $tests = []
 
 $successful = 0
 
 $warned = 0
 
 $failed = 0
 
 $risky = 0
 
 $skipped = 0
 
 $incomplete = 0
 
 $currentTestClassPrettified
 
 $currentTestMethodPrettified
 
- Protected Attributes inherited from PHPUnit\Util\Printer
 $autoFlush = false
 
 $out
 
 $outTarget
 

Constructor & Destructor Documentation

◆ __construct()

PHPUnit\Util\TestDox\ResultPrinter::__construct (   $out = null,
array  $groups = [],
array  $excludeGroups = [] 
)
Parameters
resource$out
Exceptions

Member Function Documentation

◆ addError()

PHPUnit\Util\TestDox\ResultPrinter::addError ( Test  $test,
\Throwable  $t,
float  $time 
)

An error occurred.

Implements PHPUnit\Framework\TestListener.

◆ addFailure()

PHPUnit\Util\TestDox\ResultPrinter::addFailure ( Test  $test,
AssertionFailedError  $e,
float  $time 
)

A failure occurred.

Implements PHPUnit\Framework\TestListener.

◆ addIncompleteTest()

PHPUnit\Util\TestDox\ResultPrinter::addIncompleteTest ( Test  $test,
\Throwable  $t,
float  $time 
)

Incomplete test.

Implements PHPUnit\Framework\TestListener.

◆ addRiskyTest()

PHPUnit\Util\TestDox\ResultPrinter::addRiskyTest ( Test  $test,
\Throwable  $t,
float  $time 
)

Risky test.

Implements PHPUnit\Framework\TestListener.

◆ addSkippedTest()

PHPUnit\Util\TestDox\ResultPrinter::addSkippedTest ( Test  $test,
\Throwable  $t,
float  $time 
)

Skipped test.

Implements PHPUnit\Framework\TestListener.

◆ addWarning()

PHPUnit\Util\TestDox\ResultPrinter::addWarning ( Test  $test,
Warning  $e,
float  $time 
)

A warning occurred.

◆ doEndClass()

PHPUnit\Util\TestDox\ResultPrinter::doEndClass ( )
protected

◆ endClass()

PHPUnit\Util\TestDox\ResultPrinter::endClass ( string  $name)
protected

Handler for 'end class' event.

◆ endRun()

PHPUnit\Util\TestDox\ResultPrinter::endRun ( )
protected

Handler for 'end run' event.

◆ endTest()

PHPUnit\Util\TestDox\ResultPrinter::endTest ( Test  $test,
float  $time 
)

A test ended.

Implements PHPUnit\Framework\TestListener.

◆ endTestSuite()

PHPUnit\Util\TestDox\ResultPrinter::endTestSuite ( TestSuite  $suite)

A testsuite ended.

Implements PHPUnit\Framework\TestListener.

◆ flush()

PHPUnit\Util\TestDox\ResultPrinter::flush ( )

Flush buffer and close output.

Reimplemented from PHPUnit\Util\Printer.

◆ onTest()

PHPUnit\Util\TestDox\ResultPrinter::onTest (   $name,
bool  $success = true 
)
protected

Handler for 'on test' event.

◆ startClass()

PHPUnit\Util\TestDox\ResultPrinter::startClass ( string  $name)
protected

Handler for 'start class' event.

◆ startRun()

PHPUnit\Util\TestDox\ResultPrinter::startRun ( )
protected

Handler for 'start run' event.

◆ startTest()

PHPUnit\Util\TestDox\ResultPrinter::startTest ( Test  $test)

A test started.

Exceptions

Implements PHPUnit\Framework\TestListener.

◆ startTestSuite()

PHPUnit\Util\TestDox\ResultPrinter::startTestSuite ( TestSuite  $suite)

A testsuite started.

Implements PHPUnit\Framework\TestListener.

Member Data Documentation

◆ $currentTestClassPrettified

PHPUnit\Util\TestDox\ResultPrinter::$currentTestClassPrettified
protected

◆ $currentTestMethodPrettified

PHPUnit\Util\TestDox\ResultPrinter::$currentTestMethodPrettified
protected

◆ $failed

PHPUnit\Util\TestDox\ResultPrinter::$failed = 0
protected

◆ $incomplete

PHPUnit\Util\TestDox\ResultPrinter::$incomplete = 0
protected

◆ $prettifier

PHPUnit\Util\TestDox\ResultPrinter::$prettifier
protected

◆ $risky

PHPUnit\Util\TestDox\ResultPrinter::$risky = 0
protected

◆ $skipped

PHPUnit\Util\TestDox\ResultPrinter::$skipped = 0
protected

◆ $successful

PHPUnit\Util\TestDox\ResultPrinter::$successful = 0
protected

◆ $testClass

PHPUnit\Util\TestDox\ResultPrinter::$testClass = ''
protected

◆ $tests

PHPUnit\Util\TestDox\ResultPrinter::$tests = []
protected

◆ $testStatus

PHPUnit\Util\TestDox\ResultPrinter::$testStatus
protected

◆ $warned

PHPUnit\Util\TestDox\ResultPrinter::$warned = 0
protected

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