php-src/Zend/tests/ns_019.phpt
2018-10-14 12:07:20 -03:00

13 lines
184 B
PHP

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