php-src/Zend/tests/ns_019.phpt
2012-10-10 10:27:49 +08:00

13 lines
185 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