xref: /php-src/Zend/tests/name_collision_09.phpt (revision 7aacc705)
1--TEST--
2Class declaration colliding with import (in namespace)
3--FILE--
4<?php
5
6namespace Foo {
7    const BAR = 42;
8}
9
10namespace Bazzle {
11    use const Foo\BAR;
12    const BAR = 24;
13}
14?>
15--EXPECTF--
16Fatal error: Cannot declare const Bazzle\BAR because the name is already in use in %s on line %d
17