swig/Examples/test-suite/php/casts_runme.php
Olly Betts 32283991c5 Don't generate a .php wrapper file by default
It's now only generated if something to put in it is specified via:

%pragma(php) include=...

or

%pragma(php) code=...
2021-05-04 14:14:56 +12:00

16 lines
250 B
PHP

<?php
require "tests.php";
// No new functions
check::functions(array());
// New classes
check::classes(array('A','B'));
// No new vars
check::globals(array());
# Make sure $b inherits hello() from class A
$b=new B();
$b->hello();
check::done();