PageRenderTime 39ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  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. ?>