Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- exit interrupts my unit test
June 25, 2008, 10:01 pm
rate this thread
writing. However, exit() is of course interrupting my test as I want
all of my tests to be on one page. I can't just place it last as I
have more then a few exit()s.
Please don't recommend using some great open source unit testing
framework as I really want to write my own.
Does anyone have any ideas? Is there a way to bypass exit or keep it
confined to a scope or something?
Re: exit interrupts my unit test
Nope. exit() is doing exactly what it's supposed to do.
But why are you calling exit() so much? I seldom call it - most often
after a header() redirect. Otherwise I use conditionals to structure my
Remove the "x" from my email address
JDS Computer Training Corp.