swig/Examples/test-suite/php/casts_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

19 lines
383 B
PHP

<?php
require "tests.php";
require "casts.php";
// No new classes
check::classes(array(A,B));
// New functions
check::classmethods(A,array(__construct,__set,__isset,__get,hello));
check::classmethods(B,array(__construct,__set,__isset,__get,hello));
// now new vars
check::globals(array());
# Make sure $b inherites hello() from class A
$b=new B();
$b->hello();
check::done();
?>