xref: /PHP-7.3/Zend/tests/ns_018.phpt (revision 782352c5)
1--TEST--
2018: __NAMESPACE__ constant and runtime names (ns name)
3--FILE--
4<?php
5namespace test;
6
7function foo() {
8	return __FUNCTION__;
9}
10
11$x = __NAMESPACE__ . "\\foo";
12echo $x(),"\n";
13--EXPECT--
14test\foo
15