throw_variation_001.phpt 201 B

1234567891011121314
  1. --TEST--
  2. Catching an exception thrown from an included file
  3. --FILE--
  4. <?php
  5. try {
  6. include "inc_throw.inc";
  7. } catch (Exception $e) {
  8. echo "caught exception\n";
  9. }
  10. ?>
  11. --EXPECT--
  12. caught exception