TestSupport
in package
A class that handles various site testing related things
Table of Contents
- $context : mixed
- $fdt : object
- $fdtnew : AccesBase
- $fdtold : FormData
- $local : Local
- $noform : bool
- __construct() : mixed
- Constructor
- run() : void
- Run tests
- display() : string
- Displayable version of data
- test() : bool
- Run tests specified
Properties
$context
private
mixed
$context
Tags
$fdt
private
object
$fdt
$fdtnew
private
AccesBase
$fdtnew
$fdtold
private
FormData
$fdtold
$local
private
Local
$local
$noform
private
bool
$noform
= FALSE
Methods
__construct()
Constructor
public
__construct(Context $context, string $type) : mixed
Parameters
- $context : Context
- $type : string
-
get, post etc.
Return values
mixed —run()
Run tests
public
run(array<string|int, mixed> $tests[, bool $old = TRUE ]) : void
Parameters
- $tests : array<string|int, mixed>
- $old : bool = TRUE
Return values
void —display()
Displayable version of data
private
display(mixed $pars[, bool $all = FALSE ]) : string
Parameters
- $pars : mixed
- $all : bool = FALSE
Return values
string —test()
Run tests specified
private
test(string $func, array<string|int, mixed> $params, mixed $result, bool $throwOK) : bool
Parameters
- $func : string
- $params : array<string|int, mixed>
- $result : mixed
- $throwOK : bool