xref: /PHP-7.3/Zend/tests/name_collision_07.phpt (revision 9af0c96a)
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--EXPECTF--
15Fatal error: Cannot declare class Bazzle\Bar because the name is already in use in %s on line %d
16