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

# · PHP · 22 lines · 11 code · 7 blank · 4 comment · 0 complexity · af69c6301d9f8f63107633c1497b6b72 MD5 · raw file

  1. <?php
  2. require "tests.php";
  3. require "add_link.php";
  4. // No new functions, except the flat functions
  5. check::functions(array(new_foo,foo_blah));
  6. check::classes(array(Foo));
  7. $foo=new foo();
  8. check::is_a($foo,foo);
  9. $foo_blah=$foo->blah();
  10. check::is_a($foo_blah,foo);
  11. //fails, can't be called as a class method, should allow and make it nil?
  12. //$class_foo_blah=foo::blah();
  13. //check::is_a($class_foo_blah,foo);
  14. check::done();
  15. ?>