HumHub Documentation (unofficial)

SpecifyTest
in package
implements Test, SelfDescribing

Table of Contents

Interfaces

Test
SelfDescribing

Properties

$example  : mixed
$name  : mixed
$test  : mixed
$throws  : mixed

Methods

__construct()  : mixed
count()  : int
Count elements of an object
getName()  : mixed
run()  : TestResult
Runs a test and collects its result in a TestResult instance.
setExample()  : mixed
setName()  : mixed
setThrows()  : mixed
toString()  : string

Properties

Methods

__construct()

public __construct(mixed $test) : mixed
Parameters
$test : mixed

getName()

public getName([mixed $withDataSet = true ]) : mixed
Parameters
$withDataSet : mixed = true

run()

Runs a test and collects its result in a TestResult instance.

public run([TestResult|null $result = null ]) : TestResult
Parameters
$result : TestResult|null = null
Return values
TestResult

setExample()

public setExample(mixed $example) : mixed
Parameters
$example : mixed

setName()

public setName(mixed $name) : mixed
Parameters
$name : mixed

setThrows()

public setThrows(mixed $throws) : mixed
Parameters
$throws : mixed

toString()

public toString() : string
Return values
string

        
On this page

Search results