swig/Examples/test-suite/php/casts_runme.php
Olly Betts e54d44c4be php: Omit closing ?> in manual and examples
PSR-12 says "The closing ?> tag MUST be omitted from files containing
only PHP".
2021-03-23 11:47:19 +13:00

17 lines
300 B
PHP

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