xref: /PHP-5.3/Zend/tests/class_alias_019.phpt (revision 7126de49)
1--TEST--
2Trying to redeclare class name in global scope inside namespace
3--FILE--
4<?php
5
6namespace foo;
7
8
9class foo {
10}
11
12class_alias(__NAMESPACE__ .'\foo', 'foo');
13class_alias('\foo', 'foo');
14
15?>
16--EXPECTF--
17Warning: Cannot redeclare class foo in %s on line %d
18