xref: /PHP-8.2/Zend/tests/class_alias_007.phpt (revision f8d79582)
1--TEST--
2Testing class_alias() using autoload
3--FILE--
4<?php
5
6spl_autoload_register(function ($a) {
7    class foo { }
8});
9
10class_alias('foo', 'bar', 1);
11
12var_dump(new foo, new bar);
13
14?>
15--EXPECTF--
16object(foo)#%d (0) {
17}
18object(foo)#%d (0) {
19}
20