bug75765.phpt 369 B

12345678910111213141516171819202122
  1. --TEST--
  2. Ensure that extending of undefined class throws the exception
  3. --FILE--
  4. <?php
  5. try {
  6. class A extends B {}
  7. } catch (Error $e) {
  8. var_dump(class_exists('A'));
  9. var_dump(class_exists('B'));
  10. throw $e;
  11. }
  12. ?>
  13. --EXPECTF--
  14. bool(false)
  15. bool(false)
  16. Fatal error: Uncaught Error: Class "B" not found in %s:%d
  17. Stack trace:
  18. #0 {main}
  19. thrown in %s on line %d