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

# · PHP · 18 lines · 13 code · 3 blank · 2 comment · 0 complexity · 974a4b471d10344c10dce756119293f1 MD5 · raw file

  1. <?php
  2. require "tests.php";
  3. require "evil_diamond_ns.php";
  4. check::classes(array("evil_diamond_ns","foo","bar","baz","spam"));
  5. check::functions("test");
  6. check::is_a("bar","foo");
  7. check::is_a("baz","foo");
  8. check::is_a("spam","foo");
  9. check::is_a("spam","bar");
  10. //No multiple inheritance
  11. //check::is_a("spam","baz");
  12. $spam=new spam();
  13. $_spam=test($spam);
  14. check::done();
  15. ?>