You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
522 B

22 years ago
22 years ago
22 years ago
  1. --TEST--
  2. Reflection Bug #29828 (Interfaces no longer work)
  3. --SKIPIF--
  4. <?php extension_loaded('reflection') or die('skip'); ?>
  5. --FILE--
  6. <?php
  7. interface Bla
  8. {
  9. function bla();
  10. }
  11. class BlaMore implements Bla
  12. {
  13. function bla()
  14. {
  15. echo "Hello\n";
  16. }
  17. }
  18. $r = new ReflectionClass('BlaMore');
  19. var_dump(count($r->getMethods()));
  20. var_dump($r->getMethod('bla')->isConstructor());
  21. var_dump($r->getMethod('bla')->isAbstract());
  22. $o=new BlaMore;
  23. $o->bla();
  24. ?>
  25. ===DONE===
  26. --EXPECT--
  27. int(1)
  28. bool(false)
  29. bool(false)
  30. Hello
  31. ===DONE===