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

# · PHP · 19 lines · 12 code · 4 blank · 3 comment · 0 complexity · d3506051a75fc4b9bd71cf03d0dcebb2 MD5 · raw file

  1. <?php
  2. require "tests.php";
  3. require "overload_rename.php";
  4. // No new functions
  5. check::functions(array());
  6. // No new classes
  7. check::classes(array(Foo));
  8. // now new vars
  9. check::globals(array());
  10. $f = new Foo(1.0);
  11. $f = new Foo(1.0,1.0);
  12. $f = Foo::Foo_int(1.0,1);
  13. $f = Foo::Foo_int(1.0,1,1.0);
  14. check::done();
  15. ?>