swig/Examples/test-suite/php/prefix_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
321 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();