/trunk/Examples/test-suite/php/prefix_runme.php
PHP | 18 lines | 10 code | 4 blank | 4 comment | 0 complexity | f3cfa5770916191a1a8be7802361d972 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- <?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();
- ?>