Reenable check::classes() and check::classmethods()

This commit is contained in:
Olly Betts 2021-04-14 10:05:20 +12:00
commit 40906ae856
2 changed files with 2 additions and 6 deletions

View file

@ -2,11 +2,9 @@
require "tests.php";
require "import_nomodule.php";
// No new functions
check::functions(array('create_foo','delete_foo','test1','is_python_builtin'));
// No new classes
check::classes(array('import_nomodule','Bar'));
// now new vars
check::classes(array('import_nomodule'));
// No new globals
check::globals(array());
// SWIGPHP doesn't currently support the "violation of the type system" which

View file

@ -91,7 +91,6 @@ class check {
}
static function classmethods($classname,$methods) {
return TRUE;
if (is_object($classname)) $classname=get_class($classname);
$classmethods=array_flip(get_class_methods($classname));
$message=NULL;
@ -146,7 +145,6 @@ class check {
}
static function classes($classes) {
return TRUE;
if (! is_array($classes)) $classes=array($classes);
$message=array();
$missing=array();