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

# · PHP · 22 lines · 14 code · 5 blank · 3 comment · 0 complexity · 4aa750a300d6e3d48eeea6d97c4e3476 MD5 · raw file

  1. <?php
  2. require "tests.php";
  3. require "sym.php";
  4. // No new functions
  5. check::functions(array());
  6. // No new classes
  7. check::classes(array(flim,flam));
  8. // now new vars
  9. check::globals(array());
  10. $flim=new flim();
  11. $flam=new flam();
  12. check::equal($flim->hulahoops(),"flim-jam","flim()->hulahoops==flim-jam");
  13. check::equal($flim->jar(),"flim-jar","flim()->jar==flim-jar");
  14. check::equal($flam->jam(),"flam-jam","flam()->jam==flam-jam");
  15. check::equal($flam->jar(),"flam-jar","flam()->jar==flam-jar");
  16. check::done();
  17. ?>