swig/Examples/test-suite/php/prefix_runme.php
Olly Betts ead90be779 [php] Fix -prefix when there are subclasses
The calls to the parent class' magic __get, __set and __isset methods
weren't getting the prefix.
2021-05-12 15:04:31 +12:00

16 lines
294 B
PHP

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