/trunk/Examples/test-suite/php/prefix_runme.php

# · PHP · 18 lines · 10 code · 4 blank · 4 comment · 0 complexity · f3cfa5770916191a1a8be7802361d972 MD5 · raw file

  1. <?php
  2. require "tests.php";
  3. require "prefix.php";
  4. // No new functions
  5. check::functions(array(foo_get_self));
  6. // No new classes
  7. check::classes(array(ProjectFoo));
  8. // now new vars
  9. check::globals(array());
  10. $f = new ProjectFoo();
  11. // This resulted in "Fatal error: Class 'Foo' not found"
  12. $f->get_self();
  13. check::done();
  14. ?>