class_alias_005.phpt 331 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. Testing static call method using the original class name
  3. --FILE--
  4. <?php
  5. class foo {
  6. static public function msg() {
  7. print "hello\n";
  8. }
  9. }
  10. interface test { }
  11. class_alias('foo', 'baz');
  12. class bar extends baz {
  13. public function __construct() {
  14. foo::msg();
  15. }
  16. }
  17. new bar;
  18. ?>
  19. --EXPECT--
  20. hello