__construct()
__destruct()
can_ok()
cmp_ok()
comment()
diag()
error()
fail()
handle_error()
handle_exception()
include_ok()
info()
is()
is_deeply()
isa_ok()
isnt()
like()
ok()
pass()
reset()
skip()
to_array()
to_xml()
todo()
unlike()
find_caller()
set_last_test_errors()
update_stats()
test_is_deeply()
$all_results
$options
$output
$results
$test_nb
EPSILON
Unit test library.
| package | lime |
|---|---|
| author | Fabien Potencier |
| version | SVN: $Id: lime.php 29529 2010-05-19 13:41:48Z fabien $ |
__construct($plan, $options)
__destruct()
can_ok(mixed $object, string | array $methods, string $message) : boolean
mixedan object instance or a class name
stringarrayone or more method names
stringdisplay output message when the test passes
booleancmp_ok(mixed $exp1, string $op, mixed $exp2, string $message) : boolean
mixedleft value
stringoperator
mixedright value
stringdisplay output message when the test passes
booleandiag(string $message) : void
stringdisplay output message
error($message, $file, $line, array $traces)
fail(string $message) : false
stringdisplay output message
falsehandle_error($code, $message, $file, $line, $context)
handle_exception(Exception $exception)
include_ok(string $file, string $message) : boolean
stringfile path
stringdisplay output message when the test passes
booleaninfo($message)
is(mixed $exp1, mixed $exp2, string $message) : boolean
mixedleft value
mixedright value
stringdisplay output message when the test passes
booleanis_deeply(mixed $exp1, mixed $exp2, string $message) : boolean
mixedfirst variable
mixedsecond variable
stringdisplay output message when the test passes
booleanisa_ok(mixed $var, string $class, string $message) : boolean
mixedvariable instance
stringclass or type name
stringdisplay output message when the test passes
booleanisnt(mixed $exp1, mixed $exp2, string $message) : boolean
mixedleft value
mixedright value
stringdisplay output message when the test passes
booleanlike(string $exp, string $regex, string $message) : boolean
stringvalue to test
stringthe pattern to search for, as a string
stringdisplay output message when the test passes
booleanok(mixed $exp, string $message) : boolean
mixedcondition to test
stringdisplay output message when the test passes
booleanpass(string $message) : true
stringdisplay output message
truereset()
skip(string $message, integer $nb_tests) : void
stringdisplay output message
integernumber of tests to skip
to_array()
to_xml($results)
todo(string $message) : void
stringdisplay output message
unlike(string $exp, string $regex, string $message) : boolean
stringvalue to test
stringthe pattern to search for, as a string
stringdisplay output message when the test passes
booleanfind_caller($traces)
set_last_test_errors(array $errors)
update_stats()
test_is_deeply($var1, $var2)
$all_results
$output
$results
$test_nb
EPSILON
comment()
Parameters
$message