php-src/Zend/tests/class_alias_005.phpt

28 lines
310 B
Plaintext
Raw Normal View History

2008-05-12 13:30:50 +00:00
--TEST--
Testing static call method using the original class name
--FILE--
<?php
class foo {
static public function msg() {
print "hello\n";
}
}
interface test { }
class_alias('foo', 'baz');
class bar extends baz {
public function __construct() {
foo::msg();
}
}
new bar;
?>
--EXPECT--
hello