HumHub Documentation (unofficial)

HTML extends ResultPrinter
in package

Table of Contents

Properties

$failures  : mixed
$id  : int
$printsHTML  : bool
$scenarios  : string
$templatePath  : string
$timeTaken  : int

Methods

__construct()  : mixed
Constructor.
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
Starts test
startTestSuite()  : void
endRun()  : void
Handler for 'end run' event.
renderStep()  : string
renderSubsteps()  : string
startClass()  : void
Handler for 'start class' event.
cleanMessage()  : mixed

Properties

$failures

protected mixed $failures = []

$id

protected int $id = 0

$printsHTML

protected bool $printsHTML = true

$scenarios

protected string $scenarios = ''

$templatePath

protected string $templatePath

$timeTaken

protected int $timeTaken = 0

Methods

__construct()

Constructor.

public __construct([mixed $out = null ]) : mixed
Parameters
$out : mixed = null
Tags
throws
InvalidArgumentException

addError()

An error occurred.

public addError(Test $test, Exception $e, float $time) : void
Parameters
$test : Test
$e : Exception
$time : float

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

startTest()

Starts test

public startTest(Test $test) : void
Parameters
$test : Test

startTestSuite()

public startTestSuite(TestSuite $suite) : void
Parameters
$suite : TestSuite

endRun()

Handler for 'end run' event.

protected endRun() : void

renderStep()

protected renderStep(mixed $step) : string
Parameters
$step : mixed
Return values
string

renderSubsteps()

protected renderSubsteps(mixed $metaStep, mixed $substepsBuffer) : string
Parameters
$metaStep : mixed
$substepsBuffer : mixed
Return values
string

startClass()

Handler for 'start class' event.

protected startClass(string $name) : void
Parameters
$name : string

cleanMessage()

private cleanMessage(mixed $exception) : mixed
Parameters
$exception : mixed

        
On this page

Search results