factory_and_singleton_005.phpt 374 B

1234567891011121314151617181920
  1. --TEST--
  2. ZE2 factory and singleton, test 5
  3. --FILE--
  4. <?php
  5. class test {
  6. protected function __destruct() {
  7. }
  8. }
  9. $obj = new test;
  10. $obj = NULL;
  11. echo "Done\n";
  12. ?>
  13. --EXPECTF--
  14. Fatal error: Uncaught Error: Call to protected test::__destruct() from context '' in %sfactory_and_singleton_005.php:%d
  15. Stack trace:
  16. #0 {main}
  17. thrown in %sfactory_and_singleton_005.php on line %d