diff options
Diffstat (limited to 'Examples/test-suite/php/prefix_runme.php')
| -rw-r--r-- | Examples/test-suite/php/prefix_runme.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Examples/test-suite/php/prefix_runme.php b/Examples/test-suite/php/prefix_runme.php new file mode 100644 index 0000000..ead064f --- /dev/null +++ b/Examples/test-suite/php/prefix_runme.php @@ -0,0 +1,18 @@ +<?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(); +?> |
