ns_038.phpt 274 B

123456789101112131415
  1. --TEST--
  2. 038: Name ambiguity (namespace name or internal class name)
  3. --FILE--
  4. <?php
  5. namespace Exception;
  6. function foo() {
  7. echo "ok\n";
  8. }
  9. \Exception\foo();
  10. \Exception::bar();
  11. --EXPECTF--
  12. ok
  13. Fatal error: Call to undefined method Exception::bar() in %sns_038.php on line 7