• internal This class is not covered by the backward compatibility promise for PHPUnit
public PHPUnit\Util\TestDox\ResultPrinter::__construct( $out = NULL, array $groups = [], array $excludeGroups = [])

  • throws PHPUnit\Framework\Exception
public PHPUnit\Util\TestDox\ResultPrinter::addError(PHPUnit\Framework\Test $test, Throwable $t, float $time) : void
An error occurred.

public PHPUnit\Util\TestDox\ResultPrinter::addFailure(PHPUnit\Framework\Test $test, PHPUnit\Framework\AssertionFailedError $e, float $time) : void
A failure occurred.

public PHPUnit\Util\TestDox\ResultPrinter::addIncompleteTest(PHPUnit\Framework\Test $test, Throwable $t, float $time) : void
Incomplete test.

public PHPUnit\Util\TestDox\ResultPrinter::addRiskyTest(PHPUnit\Framework\Test $test, Throwable $t, float $time) : void
Risky test.

public PHPUnit\Util\TestDox\ResultPrinter::addSkippedTest(PHPUnit\Framework\Test $test, Throwable $t, float $time) : void
Skipped test.

public PHPUnit\Util\TestDox\ResultPrinter::addWarning(PHPUnit\Framework\Test $test, PHPUnit\Framework\Warning $e, float $time) : void
A warning occurred.

public PHPUnit\Util\TestDox\ResultPrinter::endTest(PHPUnit\Framework\Test $test, float $time) : void
A test ended.

public PHPUnit\Util\TestDox\ResultPrinter::endTestSuite(PHPUnit\Framework\TestSuite $suite) : void
A testsuite ended.

public PHPUnit\Util\TestDox\ResultPrinter::flush() : void
Flush buffer and close output.

public PHPUnit\Util\Printer::getAutoFlush() : bool
Check auto-flush mode.

public PHPUnit\Util\Printer::incrementalFlush() : void
Performs a safe, incremental flush.

Do not confuse this function with the flush() function of this class,
since the flush() function may close the file being written to, rendering
the current object no longer usable.

public PHPUnit\Util\Printer::setAutoFlush(bool $autoFlush) : void
Set auto-flushing mode.

If set, incremental flushes will be done after each write. This should
not be confused with the different effects of this class' flush() method.

public PHPUnit\Util\TestDox\ResultPrinter::startTest(PHPUnit\Framework\Test $test) : void
A test started.

  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
public PHPUnit\Util\TestDox\ResultPrinter::startTestSuite(PHPUnit\Framework\TestSuite $suite) : void
A testsuite started.

public PHPUnit\Util\Printer::write(string $buffer) : void
protected PHPUnit\Util\Printer::$autoFlush
If true, flush output after every write.

  • var bool
protected PHPUnit\Util\TestDox\ResultPrinter::$currentTestClassPrettified

  • var null|string
protected PHPUnit\Util\TestDox\ResultPrinter::$currentTestMethodPrettified

  • var null|string
protected PHPUnit\Util\TestDox\ResultPrinter::$failed

  • var int
protected PHPUnit\Util\TestDox\ResultPrinter::$incomplete

  • var int
protected PHPUnit\Util\Printer::$out

  • var resource
protected PHPUnit\Util\Printer::$outTarget

  • var string
protected PHPUnit\Util\TestDox\ResultPrinter::$prettifier
protected PHPUnit\Util\TestDox\ResultPrinter::$risky

  • var int
protected PHPUnit\Util\TestDox\ResultPrinter::$skipped

  • var int
protected PHPUnit\Util\TestDox\ResultPrinter::$successful

  • var int
protected PHPUnit\Util\TestDox\ResultPrinter::$testClass

  • var string
protected PHPUnit\Util\TestDox\ResultPrinter::$tests

  • var array
protected PHPUnit\Util\TestDox\ResultPrinter::$testStatus

  • var int
protected PHPUnit\Util\TestDox\ResultPrinter::$warned

  • var int
protected PHPUnit\Util\TestDox\ResultPrinter::doEndClass() : void
protected endClass(string $name) : void
Handler for 'end class' event.

protected PHPUnit\Util\TestDox\ResultPrinter::endRun() : void
Handler for 'end run' event.

protected onTest( $name, bool $success = true) : void
Handler for 'on test' event.

protected startClass(string $name) : void
Handler for 'start class' event.

protected PHPUnit\Util\TestDox\ResultPrinter::startRun() : void
Handler for 'start run' event.

private PHPUnit\Util\TestDox\ResultPrinter::isOfInterest(PHPUnit\Framework\Test $test) : bool
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only