ns_009.phpt 170 B

1234567891011
  1. --TEST--
  2. 009: __NAMESPACE__ constant and runtime names (php name)
  3. --FILE--
  4. <?php
  5. class foo {
  6. }
  7. $x = __NAMESPACE__ . "\\foo";
  8. echo get_class(new $x),"\n";
  9. --EXPECT--
  10. foo