xref: /PHP-8.4/Zend/tests/use_const/basic.phpt (revision 4adf49ee)
1--TEST--
2import namespaced constant
3--FILE--
4<?php
5
6namespace foo\bar {
7    const baz = 42;
8    const qux = 43;
9}
10
11namespace {
12    use const foo\bar\baz, foo\bar\qux;
13    var_dump(baz);
14    var_dump(qux);
15    echo "Done\n";
16}
17
18?>
19--EXPECT--
20int(42)
21int(43)
22Done
23