Filter less in check::functions()
Stop filtering /^new_/ - we no longer generate these for classes, so only the li_carrays and li_carrays_cpp testcases generate new_* flat functions, and it's helpful to check those are generated. Stop filtering /_(alter|get)_newobject$/' - we no longer generate these, as they weren't used or documented.
This commit is contained in:
parent
7ccf3b81df
commit
12bcd36923
3 changed files with 3 additions and 5 deletions
|
|
@ -3,7 +3,7 @@ require "tests.php";
|
|||
require "li_carrays_cpp.php";
|
||||
|
||||
// Check functions.
|
||||
check::functions(array('delete_intarray','intarray_getitem','intarray_setitem','delete_abarray','abarray_getitem','abarray_setitem','sum_array'));
|
||||
check::functions(array('new_intarray','delete_intarray','intarray_getitem','intarray_setitem','new_abarray','delete_abarray','abarray_getitem','abarray_setitem','sum_array'));
|
||||
|
||||
// Check classes.
|
||||
// NB An "li_carrays_cpp" class is created as a mock namespace.
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ require "tests.php";
|
|||
require "li_carrays.php";
|
||||
|
||||
// Check functions.
|
||||
check::functions(array('delete_intarray','intarray_getitem','intarray_setitem','delete_abarray','abarray_getitem','abarray_setitem','sum_array'));
|
||||
check::functions(array('new_intarray','delete_intarray','intarray_getitem','intarray_setitem','new_abarray','delete_abarray','abarray_getitem','abarray_setitem','sum_array'));
|
||||
|
||||
// Check classes.
|
||||
// NB An "li_carrays" class is created as a mock namespace.
|
||||
|
|
|
|||
|
|
@ -46,9 +46,7 @@ class check {
|
|||
foreach($_original_functions['internal'] as $func) unset($df[$func]);
|
||||
// Now chop out any get/set accessors
|
||||
foreach(array_keys($df) as $func)
|
||||
if ((self::GETSET && preg_match('/_[gs]et$/', $func)) ||
|
||||
preg_match('/^new_/', $func) ||
|
||||
preg_match('/_(alter|get)_newobject$/', $func))
|
||||
if ((self::GETSET && preg_match('/_[gs]et$/', $func)))
|
||||
$extrags[]=$func;
|
||||
else $extra[]=$func;
|
||||
// $extra=array_keys($df);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue