xref: /PHP-8.1/Zend/tests/ns_048.phpt (revision 7aacc705)
1--TEST--
2048: __NAMESPACE__ constant and runtime names (ns name)
3--FILE--
4<?php
5namespace test\ns1;
6
7const FOO = 0;
8
9var_dump(constant(__NAMESPACE__ . "\\FOO"));
10?>
11--EXPECT--
12int(0)
13