import source from 1.3.40
[external/swig.git] / Examples / test-suite / php / add_link_runme.php
1 <?php
2
3 require "tests.php";
4 require "add_link.php";
5
6 // No new functions, except the flat functions
7 check::functions(array(new_foo,foo_blah));
8
9 check::classes(array(Foo));
10
11 $foo=new foo();
12 check::is_a($foo,foo);
13
14 $foo_blah=$foo->blah();
15 check::is_a($foo_blah,foo);
16
17 //fails, can't be called as a class method, should allow and make it nil?
18 //$class_foo_blah=foo::blah();
19 //check::is_a($class_foo_blah,foo);
20
21 check::done();
22 ?>