php-src/Zend/tests/ns_018.phpt
Dmitry Stogov f32ffe9b43 Namespaces
2007-09-28 19:52:53 +00:00

15 lines
207 B
PHP
Executable File

--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