SKIPIF print vs die
| From: | Daniel Convissor | Date: | Mon, 27 Apr 2009 22:59:18 +0000 |
| Subject: | SKIPIF print vs die | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-64806@lists.php.net to get a copy of this message | ||
Hi Folks:
I'm reading up on .phpt's because I'll be giving a tutorial at New York's
test fest event.
The SKIPIF section info at http://qa.php.net/write-test.php uses print
'skip whatever' rather than die('skip whatever'), which is commonly used
in actual tests. die() seems preferable since it will halt undesirable
execution when calling the .phpt file directly (as discussed at the
bottom of the write-test web page.
I'm wondering what people think about this and whether write-test needs
tweaking.
Thanks,
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409