xref: /PHP-7.4/Zend/tests/constants_004.phpt (revision 7126de49)
1--TEST--
2Trying to redeclare constant inside namespace
3--FILE--
4<?php
5
6namespace foo;
7
8const foo = 1;
9const foo = 2;
10
11?>
12--EXPECTF--
13Notice: Constant foo\foo already defined in %s on line %d
14