Avoid uses of undeclared variables in PHP testsuite

This commit is contained in:
Olly Betts 2019-02-09 11:32:51 +13:00
commit cf785d7071
3 changed files with 3 additions and 2 deletions

View file

@ -30,7 +30,7 @@ unset($handle);
#$handledata=handle($handle);
#check::equal($handledata,"Here it is","\$handledata != \"Here it is\"");
unset($handle);
$handle=NULL;
voidhandle($handle);
check::isnull($handle,'$handle not null');

View file

@ -10,7 +10,7 @@ check::classes(array('UnaryFunction_bool_bool','BoolUnaryFunction_bool'));
$ufbb=new unaryfunction_bool_bool();
check::is_a($ufbb,"unaryfunction_bool_bool");
unset($whatisthis);
$whatisthis=NULL;
$bufb=new boolunaryfunction_bool($whatisthis);
check::is_a($bufb,"boolunaryfunction_bool");

View file

@ -82,6 +82,7 @@ class check {
static function classmethods($classname,$methods) {
if (is_object($classname)) $classname=get_class($classname);
$classmethods=array_flip(get_class_methods($classname));
$message=NULL;
$missing=array();
$extra=array();
foreach($methods as $method) {