Property | Type | Description | |
---|---|---|---|
$active | boolean | Active flag | |
$results | array | Test results | |
$strict | boolean | Whether to use === or == when comparing |
Property | Type | Description | |
---|---|---|---|
$_template | string | Template | |
$_template_rows | string | Template rows | |
$_test_items_visible | array | List of visible test items |
Method | Description | |
---|---|---|
__construct ( ) : void | Constructor | |
active ( $state = TRUE ) : void | Make Unit testing active | |
report ( array $result = [] ) : string | Generate a report | |
result ( array $results = [] ) : array | Result Array | |
run ( mixed $test, mixed $expected = TRUE, string $test_name = 'undefined', string $notes = '' ) : string | Run the tests | |
set_template ( $template ) : void | Set the template | |
set_test_items ( array $items ) : void | Run the tests | |
use_strict ( boolean $state = TRUE ) : void | Use strict comparison |
Method | Description | |
---|---|---|
_backtrace ( ) : array | Generate a backtrace | |
_default_template ( ) : string | Get Default Template | |
_parse_template ( ) : void | Parse Template |
protected _backtrace ( ) : array | ||
return | array |
protected _default_template ( ) : string | ||
return | string |
protected _parse_template ( ) : void | ||
return | void |
public set_template ( $template ) : void | ||
return | void |
public set_test_items ( array $items ) : void | ||
$items | array | |
return | void |
public use_strict ( boolean $state = TRUE ) : void | ||
$state | boolean | |
return | void |
protected array $_test_items_visible | ||
return | array |
public bool $strict | ||
return | boolean |