SpecifyTest
in package
implements
Test, SelfDescribing
Table of Contents
Interfaces
Properties
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
$example
protected
mixed
$example
$name
protected
mixed
$name
$test
protected
mixed
$test
$throws
protected
mixed
$throws
Methods
__construct()
public
__construct(mixed $test) : mixed
Parameters
- $test : mixed
count()
Count elements of an object
public
count() : int
Tags
Return values
int —The custom count as an integer.
The return value is cast to an integer.
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
TestResultsetExample()
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