Methods |
public
|
test_tail(int $cnt = 20, double $timing = 0.5)
Test AJAX tail support
|
#
|
public
|
test_tail2($cnt = 20, $timing = 0.5)
|
#
|
public
|
test_tail3()
|
#
|
public
|
test_error($message = 'generic error')
|
#
|
public
|
test1()
|
#
|
public
|
test_backend_error($message = 'abcdef')
|
#
|
public
|
test_sudo()
|
#
|
public
|
test_array(int $arg1, int $arg2 = null): array
array test_array(int[, int])
Demonstration test of returning an array. If invoked through a SOAP
call, this would…
array test_array(int[, int])
Demonstration test of returning an array. If invoked through a SOAP
call, this would return a three tuple object, non-associative, handled
by the function interceptor class
Parameters
$arg1 |
integer to add
|
$arg2 |
integer to add
|
Returns
associative array containing indicies ret1, ret2, and ret3
|
#
|
public
|
test_exception(bool $trigger = false): bool
bool test_exception([bool = false])
Tests exception handling of modules
bool test_exception([bool = false])
Tests exception handling of modules
Parameters
$trigger |
whether to trigger an exception or just return true
|
Returns
Returns true if no exception to be thrown,
exception obj otherwise, which is derived from the Exception
class
|
#
|
public
|
test_scalar(int $arg1, int $arg2): int
int test_scalar(int, int)
int test_scalar(int, int)
Parameters
$arg1 |
integer to add
|
$arg2 |
integer to add
Similar to test_array, but returns the scalar sum of $arg1 + $arg2
|
Returns
|
#
|
public
|
test_basic()
|
#
|
public
|
test_account_metadata()
|
#
|