swig/Examples/test-suite/php/class_ignore_runme.php
Nihal 2e5f0fac52 Add class method check in Test Cases.
Currently they check flat functions at check::functions()
2017-07-27 06:51:00 +05:30

21 lines
551 B
PHP

<?php
require "tests.php";
require "class_ignore.php";
check::functions(array(do_blah));
check::classes(array(class_ignore,Bar,Boo,Far,Hoo));
// New functions
check::classmethods(Bar,array(__construct,__set,__isset,__get,blah));
check::classmethods(Boo,array(__construct,__set,__isset,__get,away));
check::classmethods(Far,array(__construct,__set,__isset,__get));
check::classmethods(Hoo,array(__construct,__set,__isset,__get));
// No new vars
check::globals(array());
$bar=new bar();
do_blah($bar);
check::classparent($bar,"");
check::done();
?>