in reply to How to determine of script executed correctly?
You might find the replies of Toolic and Moritz to my question about Testing error handling that calls "die" will do what you want.
Fruit and Vegetables
Me, that's why I'm so cool
Logic (separated into Horror and Brilliance)
Results (285 votes). Check out past polls.