Add PHP run test for global_vars

This commit is contained in:
Olly Betts 2021-04-17 06:04:55 +12:00
commit 14edc26c8d
3 changed files with 37 additions and 0 deletions

View file

@ -208,6 +208,11 @@ class check {
return TRUE;
}
static function equivalent($a,$b,$message) {
if (! ($a==$b)) return check::fail($message . ": '$a'!='$b'");
return TRUE;
}
static function resource($a,$b,$message) {
return check::equal(get_resource_type($a), $b, $message);
}