ns_004.phpt 304 B

123456789101112
  1. --TEST--
  2. 004: Using global class name from namespace (unqualified - fail)
  3. --FILE--
  4. <?php
  5. namespace test\ns1;
  6. echo get_class(new Exception()),"\n";
  7. --EXPECTF--
  8. Fatal error: Uncaught Error: Class 'test\ns1\Exception' not found in %sns_004.php:%d
  9. Stack trace:
  10. #0 {main}
  11. thrown in %sns_004.php on line %d