xref: /PHP-7.2/Zend/tests/class_alias_021.phpt (revision 1b4134c0)
1--TEST--
2Overriding internal class with class alias
3--FILE--
4<?php
5
6namespace foo;
7
8class bar { }
9
10class_alias('foo\bar', 'baz');
11
12use \baz as stdClass;
13
14var_dump(new bar);
15var_dump(new stdClass);
16var_dump(new \baz);
17
18?>
19--EXPECTF--
20object(foo\bar)#%d (0) {
21}
22object(foo\bar)#%d (0) {
23}
24object(foo\bar)#%d (0) {
25}
26