Avoid uses of undeclared variables in PHP testsuite
This commit is contained in:
parent
aa7eb05071
commit
cf785d7071
3 changed files with 3 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ unset($handle);
|
||||||
#$handledata=handle($handle);
|
#$handledata=handle($handle);
|
||||||
#check::equal($handledata,"Here it is","\$handledata != \"Here it is\"");
|
#check::equal($handledata,"Here it is","\$handledata != \"Here it is\"");
|
||||||
|
|
||||||
unset($handle);
|
$handle=NULL;
|
||||||
voidhandle($handle);
|
voidhandle($handle);
|
||||||
check::isnull($handle,'$handle not null');
|
check::isnull($handle,'$handle not null');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ check::classes(array('UnaryFunction_bool_bool','BoolUnaryFunction_bool'));
|
||||||
$ufbb=new unaryfunction_bool_bool();
|
$ufbb=new unaryfunction_bool_bool();
|
||||||
check::is_a($ufbb,"unaryfunction_bool_bool");
|
check::is_a($ufbb,"unaryfunction_bool_bool");
|
||||||
|
|
||||||
unset($whatisthis);
|
$whatisthis=NULL;
|
||||||
$bufb=new boolunaryfunction_bool($whatisthis);
|
$bufb=new boolunaryfunction_bool($whatisthis);
|
||||||
check::is_a($bufb,"boolunaryfunction_bool");
|
check::is_a($bufb,"boolunaryfunction_bool");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@ class check {
|
||||||
static function classmethods($classname,$methods) {
|
static function classmethods($classname,$methods) {
|
||||||
if (is_object($classname)) $classname=get_class($classname);
|
if (is_object($classname)) $classname=get_class($classname);
|
||||||
$classmethods=array_flip(get_class_methods($classname));
|
$classmethods=array_flip(get_class_methods($classname));
|
||||||
|
$message=NULL;
|
||||||
$missing=array();
|
$missing=array();
|
||||||
$extra=array();
|
$extra=array();
|
||||||
foreach($methods as $method) {
|
foreach($methods as $method) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue