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