It's now only generated if something to put in it is specified via: %pragma(php) include=... or %pragma(php) code=...
17 lines
337 B
PHP
17 lines
337 B
PHP
<?php
|
|
|
|
require "tests.php";
|
|
|
|
// No new functions
|
|
check::functions(array());
|
|
// New classes
|
|
check::classes(array('Foo'));
|
|
// No new vars
|
|
check::globals(array());
|
|
|
|
$foo = Foo::makeFoo();
|
|
check::equal(get_class($foo), "Foo", "static failed");
|
|
$bar = $foo->makeMore();
|
|
check::equal(get_class($bar), "Foo", "regular failed");
|
|
|
|
check::done();
|