ns_048.phpt 180 B

1234567891011
  1. --TEST--
  2. 048: __NAMESPACE__ constant and runtime names (ns name)
  3. --FILE--
  4. <?php
  5. namespace test\ns1;
  6. const FOO = 0;
  7. var_dump(constant(__NAMESPACE__ . "\\FOO"));
  8. --EXPECT--
  9. int(0)