DESTROY() is just another method. You can mock it to make sure it's called when you think it should be called, and you can call it with a mock object to make sure it does what you think it should do. The only real trick is knowing that it's called during an end of lifetime cleanup.
In reply to Re: Testing DESTROY Methods?
by chromatic
in thread Testing DESTROY Methods?
by Zaxo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |