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

18 lines
320 B
PHP

<?php
require "tests.php";
require "prefix.php";
// No new functions
check::functions(array(foo_get_self));
// No new classes
check::classes(array(ProjectFoo));
// now new vars
check::globals(array());
$f = new ProjectFoo();
// This resulted in "Fatal error: Class 'Foo' not found"
$f->get_self();
check::done();
?>