php-src/Zend/tests/ns_018.phpt
2020-08-09 22:03:36 +02:00

16 lines
211 B
PHP

--TEST--
018: __NAMESPACE__ constant and runtime names (ns name)
--FILE--
<?php
namespace test;
function foo() {
return __FUNCTION__;
}
$x = __NAMESPACE__ . "\\foo";
echo $x(),"\n";
?>
--EXPECT--
test\foo