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 "tests.php";
require "import_nomodule.php"; require "import_nomodule.php";
// No new functions
check::functions(array('create_foo','delete_foo','test1','is_python_builtin')); check::functions(array('create_foo','delete_foo','test1','is_python_builtin'));
// No new classes check::classes(array('import_nomodule'));
check::classes(array('import_nomodule','Bar')); // No new globals
// now new vars
check::globals(array()); check::globals(array());
// SWIGPHP doesn't currently support the "violation of the type system" which // 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) { static function classmethods($classname,$methods) {
return TRUE;
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; $message=NULL;
@ -146,7 +145,6 @@ class check {
} }
static function classes($classes) { static function classes($classes) {
return TRUE;
if (! is_array($classes)) $classes=array($classes); if (! is_array($classes)) $classes=array($classes);
$message=array(); $message=array();
$missing=array(); $missing=array();