Reenable check::classes() and check::classmethods()
This commit is contained in:
parent
836258b9d3
commit
40906ae856
2 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue