swig/Examples/test-suite/php/add_link_runme.php
Miklos Vajna 82df087b8b PHP: remove '// Sample test file' comments from runme files
Those are cut&pasted from skel.php, but that comment makes sense only in
skel.php itself.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11598 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-16 22:23:32 +00:00

22 lines
426 B
PHP

<?php
require "tests.php";
require "add_link.php";
// No new functions, except the flat functions
check::functions(array(new_foo,foo_blah));
check::classes(array(Foo));
$foo=new foo();
check::is_a($foo,foo);
$foo_blah=$foo->blah();
check::is_a($foo_blah,foo);
//fails, can't be called as a class method, should allow and make it nil?
//$class_foo_blah=foo::blah();
//check::is_a($class_foo_blah,foo);
check::done();
?>