xref: /PHP-8.1/Zend/tests/name_collision_07.phpt (revision 7aacc705)
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 declare class Bazzle\Bar because the name is already in use in %s on line %d
17