summaryrefslogtreecommitdiff
path: root/Examples/test-suite/php/import_nomodule_runme.php
blob: 41836ba0f8089c908221d3bf5cd53b89d31ba8f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
require "tests.php";
require "import_nomodule.php";

// No new functions
check::functions(array(create_foo,delete_foo,test1,is_python_builtin));
// No new classes
check::classes(array(import_nomodule,Bar));
// now new vars
check::globals(array());

$f = import_nomodule::create_Foo();
import_nomodule::test1($f,42);
import_nomodule::delete_Foo($f);

$b = new Bar();
import_nomodule::test1($b,37);

check::done();
?>