xref: /PHP-8.4/Zend/tests/enum/constants.phpt (revision 269c8dac)
1--TEST--
2Enum allows constants
3--FILE--
4<?php
5
6enum Foo {
7    const BAR = 'Bar';
8}
9
10echo Foo::BAR . "\n";
11
12?>
13--EXPECT--
14Bar
15