xref: /PHP-5.6/Zend/tests/ns_048.phpt (revision 7126de49)
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--EXPECT--
11int(0)
12