git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
24 lines
481 B
PHP
24 lines
481 B
PHP
<?php
|
|
|
|
require "tests.php";
|
|
require "director_extend.php";
|
|
|
|
// No new functions
|
|
check::functions(array(spobject_getfoobar,spobject_dummy,spobject_exceptionmethod));
|
|
// No new classes
|
|
check::classes(array(SpObject));
|
|
// now new vars
|
|
check::globals(array());
|
|
|
|
class MyObject extends SpObject{
|
|
function getFoo() {
|
|
return 123;
|
|
}
|
|
}
|
|
|
|
$m = new MyObject();
|
|
check::equal($m->dummy(), 666, "1st call");
|
|
check::equal($m->dummy(), 666, "2st call"); // Locked system
|
|
|
|
check::done();
|
|
?>
|