xref: /PHP-5.6/Zend/tests/class_alias_015.phpt (revision 7126de49)
1--TEST--
2Testing instantiation using namespace:: prefix
3--FILE--
4<?php
5
6namespace foo;
7
8class bar {
9}
10
11class_alias('foo\bar', 'foo\baz');
12
13var_dump(new namespace\baz);
14
15?>
16--EXPECTF--
17object(foo\bar)#%d (0) {
18}
19