HumHub Documentation (unofficial)

Report extends ResultPrinter
in package
implements ConsolePrinter

Table of Contents

Interfaces

ConsolePrinter
Printer implementing this interface prints output to console, thus should be marked as printer and not just a logger

Methods

addError()  : void
An error occurred.
addFailure()  : void
A failure occurred.
addIncompleteTest()  : void
Incomplete test.
addRiskyTest()  : void
Risky test.
addSkippedTest()  : void
Skipped test.
addWarning()  : void
A warning occurred.
endTest()  : void
printResult()  : void
startTest()  : void
write()  : void
endRun()  : void

Methods

addFailure()

A failure occurred.

public addFailure(Test $test, AssertionFailedError $e, float $time) : void
Parameters
$test : Test
$e : AssertionFailedError
$time : float

addRiskyTest()

Risky test.

public addRiskyTest(Test $test, Throwable $e, float $time) : void
Parameters
$test : Test
$e : Throwable
$time : float
Tags
since

Method available since Release 4.0.0

addSkippedTest()

Skipped test.

public addSkippedTest(Test $test, Throwable $e, float $time) : void
Parameters
$test : Test
$e : Throwable
$time : float
Tags
since

Method available since Release 3.0.0

addWarning()

A warning occurred.

public addWarning(Test $test, Warning $e, float $time) : void
Parameters
$test : Test
$e : Warning
$time : float

endTest()

public endTest(Test $test, float $time) : void
Parameters
$test : Test
$time : float

printResult()

public printResult(TestResult $result) : void
Parameters
$result : TestResult

write()

public write(string $buffer) : void
Parameters
$buffer : string

endRun()

protected endRun() : void

        
On this page

Search results