Add PHP run test for global_vars
This commit is contained in:
parent
2629764e3f
commit
14edc26c8d
3 changed files with 37 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue