xref: /php-src/Zend/tests/name_collision_07.phpt (revision 1c30c5e7)
1--TEST--
2Class declaration colliding with import (in namespace)
3--FILE--
4<?php
5
6namespace Foo {
7    class Bar {}
8}
9
10namespace Bazzle {
11    use Foo\Bar;
12    class Bar {}
13}
14?>
15--EXPECTF--
16Fatal error: Cannot redeclare class Bazzle\Bar (previously declared as local import) in %s on line %d
17