Public Member Functions | |
set_test_items ($items=array()) | |
run ($test, $expected=TRUE, $test_name= 'undefined', $notes= '') | |
report ($result=array()) | |
use_strict ($state=TRUE) | |
active ($state=TRUE) | |
result ($results=array()) | |
set_template ($template) | |
_backtrace () | |
_default_template () | |
_parse_template () | |
Data Fields | |
$active = TRUE | |
$results = array() | |
$strict = FALSE | |
$_template = NULL | |
$_template_rows = NULL | |
$_test_items_visible = array() | |
_backtrace | ( | ) |
Generate a backtrace
This lets us show file names and line numbers
private
_default_template | ( | ) |
Get Default Template
private
_parse_template | ( | ) |
Parse Template
Harvests the data within the template {pseudo-variables}
private
active | ( | $state = TRUE ) |
Make Unit testing active
Enables/disables unit testing
public
bool |
report | ( | $result = array() ) |
Generate a report
Displays a table with the test data
public
result | ( | $results = array() ) |
Result Array
Returns the raw result data
public
run | ( | $test, | |
$expected = TRUE , |
|||
$test_name = 'undefined' , |
|||
$notes = '' |
|||
) |
Run the tests
Runs the supplied tests
public
mixed | |
mixed | |
string |
set_template | ( | $template) |
Set the template
This lets us set the template to be used to display results
public
string |
set_test_items | ( | $items = array() ) |
Run the tests
Runs the supplied tests
public
array |
use_strict | ( | $state = TRUE ) |
Use strict comparison
Causes the evaluation to use === rather than ==
public
bool |