ns_019.phpt 184 B

123456789101112
  1. --TEST--
  2. 019: __NAMESPACE__ constant and runtime names (php name)
  3. --FILE--
  4. <?php
  5. function foo() {
  6. return __FUNCTION__;
  7. }
  8. $x = __NAMESPACE__ . "\\foo";
  9. echo $x(),"\n";
  10. --EXPECT--
  11. foo