swig/Examples/test-suite/php/director_extend_runme.php
Olly Betts cadd97ac4f [php] Fix widespread use of bare strings in testsuite
These generate warnings with PHP 7.3, which will become errors in a
future version.
2019-02-08 15:32:30 +13:00

24 lines
489 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();
?>