xref: /PHP-8.2/Zend/tests/class_alias_005.phpt (revision f8d79582)
1--TEST--
2Testing static call method using the original class name
3--FILE--
4<?php
5
6class foo {
7    static public function msg() {
8        print "hello\n";
9    }
10}
11
12interface test { }
13
14
15class_alias('foo', 'baz');
16
17class bar extends baz {
18    public function __construct() {
19        foo::msg();
20    }
21}
22
23new bar;
24
25?>
26--EXPECT--
27hello
28