exception_003.phpt 221 B

1234567891011121314
  1. --TEST--
  2. Throwing exception in global scope
  3. --FILE--
  4. <?php
  5. throw new Exception(1);
  6. ?>
  7. --EXPECTF--
  8. Fatal error: Uncaught exception 'Exception' with message '1' in %s:%d
  9. Stack trace:
  10. #0 {main}
  11. thrown in %s on line %d