php-src/Zend/tests/class_alias_005.phpt
2020-02-03 22:52:20 +01:00

28 lines
331 B
PHP

--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